Answer the question
In order to leave comments, you need to log in
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
doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-exampl...
FlowLayout solves this problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question