Advanced design techniques
-
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
https://www.youtube.com/watch?v=m4NIeakn1XwAlso, i found this
http://zetcode.com/gui/pyqt4/customwidgets/
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
http://doc.qt.io/qt-5/qhoverevent.html#detailsMaybe others know more python samples. Im on the c++ side :)