Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Как сделать пустую матрицу
-
Собственно, хочу сделать матрицу из квадратов с помощью GridLayout.
while (i<10) //создание матрицы 10:10 { mainLayout->addWidget(sample, i, j); //i=row, j=column i++; j++; }
Но Qt ругается, что не будет вставлять пустые элементы. Чем-нибудь заполнить Label? Или другой класс взять? Или вообще свой сделать?
-
@graser said in Как сделать пустую матрицу:
mainLayout
sample widget is added into layer 10 times, which does not mean add 10 widgets into it. Re-adding a widget into a layer acts different than you thought.