Answer the question
In order to leave comments, you need to log in
How to create a tab in a tabWidget with ready made widgets not from code?
I want to be able to add tabs in a tab widget with ready-made buttons, input fields, etc., in the designer, how can I implement this? Create a separate form to insert it into a tab?
Answer the question
In order to leave comments, you need to log in
Yes, create a separate form, for example Page1 (page1.h page1.cpp page1.ui)
In the designer.
You placed QTabWidget somewhere.
In the Object inspector, right-click on tab_1 (it was created by default when QTabWidget was thrown) -> Promote to...
Next, in the window, fill in
Page1
page1.h
https://doc.qt.io/qt-5/designer-using-custom -widge...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question