Promoted custum QWidget preview in the UI Editor
Solved
General and Desktop
-
Hi everybody,
I have a curiosity:
Is it possible to see preview of a promoted custom Qwidget?I think no, but maybe there is a way that I don’t know.
Example: seeing in the first image the layout of the second image. WidgetFormTop is promoted to FormTop.
Image 1
Image 2Thank in advance
CP71 -
In general, no.
A "promoted" widget can only be previewed as the base widget it is promoted from.
To "see preview of a custom widget", you'll need to write your own qt designer plugin.
https://doc.qt.io/qt-5/designer-creating-custom-widgets.html
That's quite not convenient and extra work.
I think you wouldn't want to do it...