Custom widget in Qt designer
Unsolved
Qt Creator and other tools
-
wrote on 14 Jul 2017, 12:04 last edited by
Hi,
I generated a custom widget and managed to insert it to Qt Designer.
The problem is that it does not show the widget image even though I created a paintEvent method.
My question is what method of the widget does the Qt designer use for showing
the image of the widget ?
Thanks,
Ilan -
wrote on 8 Aug 2017, 19:39 last edited by Pablo J. Rogina 8 Aug 2017, 19:40
My question is what method of the widget does the Qt designer use for showing
If you mean Qt Designer showing your custom widget in the toolbox along default widgets (i.e. QLabel, QLineEdit, etc.) I guess you may need to create a plugin for Qt Designer from your custom widget. Qt Designer used a plugin based approach, see here.