S
S
shell_execute2016-01-29 17:54:56
Qt
shell_execute, 2016-01-29 17:54:56

QGridLayout how to make responsive?

Good day! Interested in whether it is possible to achieve adaptive behavior from QGridLayout, in terms of the number of columns. For example, when layout width = 300, there should be 3 columns, when 200 - there should be 2, when 100 - there should be 1. When decreasing, of course, the number of columns should increase so that the content fits at the same width.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shell_execute, 2016-01-30
@shell_execute

doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-exampl...
FlowLayout solves this problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question