nokia - How can I insert a widget into a mainwindow generated by Qt designer? -
I have a main window build with QT Designer and I have a QT Designer (a separate UI file in both).
QWidget
, and as you want your custom widget, type its name / status / name
QWidget
after doing this, right-click on QWidget
And select Promote ... . A dialogue will appear with widgets that can be promoted, at the bottom of that dialog, you can add a new widget for the promotion. Type in the name of the class and include the file information, and add that widget. Then select the entry in the list, and click the Promote button. At the end of this process, you should be able to compile again, and your custom widget will be where you put it in the main window.
Comments
Post a Comment