Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Advanced design techniques
iamlion12 last edited by iamlion12
HI, I'm newbie in Qt and GUI development, and I'm interested in design(self.pleasure(u know)) and custom widget creation. For example, I want to make a round button that will be highlighted when you move the cursor over it. So I want to ask, in this universe there are articles or something that will help me understand how to do this stuff? I want know it on the fundamental level, not on "copy-paste"-level. Also, I doesn't need this, but I want it :) And I'm using PyQt, so that's why this question is here))
Hi and welcome to the forums.
While you could make such button using stylesheets its also possible via custom widget and paint it yourself.
There are many videos
Also, i found this
Which show how to subclass QWidget and add paint method to it.
Also for the "highlight when mouse over" you are after the hover events
Maybe others know more python samples. Im on the c++ side :)
iamlion12 last edited by
Thank you! Second example is really what I wanted!