Consider I have created a button in "C++ code" named my_button
:
QPushButton* my_button = new QPushButton (tr("OK"));
Now I want to manipulate this button as follows:
- Change the font to Italic or Bold (e.g., OK OK)
- Set a red or blue color for it
- Make the font bigger/smaller
- Change its size (height and width)
- Change its position (to right/left/up/down)
I searched the web mush but couldn't find a way for doing all of the works. I would thank you if you tell me how to do these.