Python Qt Designer Custom Widget with PaintEvent
Unsolved
General and Desktop
-
Hello,
I have custom widget, I created it with coding. Using paintEvent to draw something special.
How Can I use my widget on Qt Designer for design?As I know there is no support paintEvent on Qt Designer for python
Thanks :)
-
@Emrecp said in Python Qt Designer Custom Widget with PaintEvent:
How Can I use my widget on Qt Designer for design?
You can use the "promote" feature, see https://doc.qt.io/qt-5/designer-using-custom-widgets.html
If you want to be able to select and use your widget directly in designer you will need to create a designer plug-in.
2/3