I want to create a custom widget that I can place and use from the Qt Designer like other built-in widgets...Simply this widget is actually derived from QWidget class and has additional initialization properties. What's the best way to do it?
I want to create a custom widget that I can place and use from the Qt Designer like other built-in widgets...Simply this widget is actually derived from QWidget class and has additional initialization properties. What's the best way to do it?
Open Qt Assistant. In Contents tab choose:
1. Qt Designer -> Manual -> Creating Custom Widgets for Qt Designer
2. Qt Designer -> Examples -> Custom Widget Plugin Example
To read how to create custom widgets for Qt Designer.
Gr8t! Simple and informative. Thanks.
Oh one more thing...After I had successfully created a custom widget which I can now use from the Designer, it's still missing the boundaries (dashed outline) that indicates the widget placement and size...I use the analog clock example as a template, did not modify anything in the plygin module. Is there anything I need to do to show a guiding outline?
Thnx
If you mean that your widget size is 0 in width or height, then implement sizeHint() in your widget.
Actually I mean the boundary outline that shows the widget in the designer forms...
Bookmarks