Python Forum
[PyQt5] - Custom Drawn Controls? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PyQt5] - Custom Drawn Controls? (/thread-8739.html)



[PyQt5] - Custom Drawn Controls? - Swatto - Mar-05-2018

Good Morning,

Is it possible to create a custom drawn control that inherits from a standard control (like QButton) in PyQt5? For example if I want a QButton that is shaped oval? I know you can do this sort of thing with C# and WinForms...just wondering if the same is possible with Python and PyQt?

Thanks very much,


RE: [PyQt5] - Custom Drawn Controls? - Larz60+ - Mar-05-2018

see: https://stackoverflow.com/questions/8544625/pyqt4-custom-widget-class-structure
and
http://zetcode.com/gui/pyqt4/customwidgets/
there are many more. google 'custom PyQt controls that inherit'