S
S
Saharman2018-06-03 21:45:23
Qt
Saharman, 2018-06-03 21:45:23

How to change the size of a Qt widget in code?

I created my own widget, in which I add other widgets. I would like that when adding, the size of the parent widget increases by 100. How can this be done in the program code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2018-06-03
@vt4a2h

doc.qt.io/qt-5/layout.html is for adaptability.
And it's just that there are methods for setting the size of widgets, for example resize.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question