Reputation: 6807
I'm wondering about the length and width of the row in PyQt4 and can only find methods to ask the number of them, or to set the geometry of the whole layout but not to see or specify the length of each square. I have conceptualized my draft as to accomodate as 125x125 grid.
On a separate but not completly unrelated, is there another way to order widget in the Window other than (H/V/Grid)layouts?
Upvotes: 1
Views: 7658
Reputation: 8942
The purpose of Layouts is to arrange them with respect to each other.
If you want to have fixed widget sizes and position, you can position them yourself, manually:
w = QWidget()
w.resize(800, 800)
i = QWidget(w)
i.move(200, 200)
i.setFixedSize(400, 400)
#alternatively: i.setGeometry(200, 200, 400, 400)
i.setStyleSheet("QWidget {background-color:blue}")
w.show()
Upvotes: 2