M
M
Mars362021-08-10 21:45:24
Qt
Mars36, 2021-08-10 21:45:24

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

1 answer(s)
T
tugo, 2021-08-11
@Mars36

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 question

Ask a Question

731 491 924 answers to any question