The qt designer portion of qt creator has many built in widgets. But let's say I want to add custom widgets created in the same qt project to the ui file of the window. By taking these steps:
- Create a new Qt GUI application with a main window, we'll call the window A.
- Add a new widget to the project, the widget just uses standard UI components, say buttons. We'll call this widget B.
- Add an instance of widget B to window A.
Now, I know one way to do that, and that is:
- In window A, add a blank widget (or widget container, from the containers section of the list of possible widgets. We'll call this widget C.
- Promote it (widget C) to widget B.
However, the problem with this is that Qt Creator's designer treats it like a generic QWidget. And as such, you can't do things like add it to a splitter, or connect signals/slots that are specific to the widget.
So is there any other ways to add widget B to window A in the ui file using qt creator? Thank you.