QPushButton move icon to left and center text with paintEvent(...)
Solved
General and Desktop
-
Hello, I am interested can I move a
QPushButton
icon to the left of the button while preserving the text centered in overriding thepaintEvent(QPaintEvent*)
method? I could not find any good example of doing so? If that is not possible, shall I just derive aQWidget
?Regards.
-
Hi! As you've marked the thread as solved it would be nice if you could share your solution with the other users :)