Home > Back-end >  Write a number ball qt
Write a number ball qt

Time:11-26

Please use qt how to produce the effect of the image

CodePudding user response:

Drawing, first draw a circle, draw two words

CodePudding user response:

QLabel
Use setStyleSheet
"QLabel {background: red; color:white; Border - the radius: % 1 px; }
"% 1 use QString arg fill height/2

Then the setFont QFont set the font size what bold

SetText

Finished,

CodePudding user response:

Or the second floor, direct drawing, drawing number, beautiful, beautiful,,,
  • Related