M
M
Mercury132015-11-30 12:23:52
Qt
Mercury13, 2015-11-30 12:23:52

Qt: how to show on the form either a checkbox, or a combobox, or a hole?

Suppose, in some place of the form, it is necessary to show either a checkbox, or a combobox, or a hole. Those components that are under the hole should not move anywhere. What component to use for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2015-11-30
@Mercury13

Of course, you want something weird, but QStackedWidget with fixed sizes is at your service.

T
TriKrista, 2015-11-30
@TriKrista

Используйте QWidget или QFrame. И через layout вставляйте в него тот виджет который вам нужен в определенный момент, а не нужный удаляйте.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question