Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QPushButton with colored rectangle embedded and text inside on side of Rectanlde
Qt Enthusiast last edited by
I want to implement a QPushButton with colored rectangle inside it and text inside on side of Rectangle . If I click on button , then QColorDialog should come up and what color I choose in the QColorDialog then the same should be there in rectangle in th QPushButton. Can someone help me get some tips for the same
you can create your own button and paint it
Or you can paint on pixmap and just set the pixmap to the button as icon.
VRonin last edited by