I have a MainWindow .ui file and a QWidget .ui file, I want to use the latter one
-
I want to use the QWidget .ui file as and sub Widget for MainWindow
how to do that?
Is that possible to directly to description in .ui file or I need to use code to create it. -
I'm not sure I understand. You want to use a custom widget inside your main window?
If yes then the way it's done in Qt is via promotion mechanism. You create your main window and the custom widget as separate forms. Then, in your main window, you insert a empty placeholder widget, right click on it and select "promote to", where you declare your custom widget name and header location.
More about it "here":http://qt-project.org/doc/qt-5.0/qtdesigner/designer-using-custom-widgets.html#promoting-widgets -
That's really helpful, thank you very much!