Strange problem with layout
i have two strange problems with my layout.
My layout is like this:
this->mainLayout = new QHBoxLayout();
this->itemView = new QTableView();
menuLayout = new QVBoxLayout();
mapsLayout = new QHBoxLayout();
Now i would to remove the mapsLayout from the mainLayout. I tried all method of the documentation but noone seems works fine.
An other problem is that the mapsLayout is displayed vertically. Why? It 's a QHBoxLayout. I would to display it horizontally, under my QTableView.
This is th screenshot:
Regarding your second question:
I think your understanding of the layout terminology is backwards: a horizontal layout lays out items in a horizontal row, whereas a vertical layout lays out items in a vertical column. It sounds to me like you want a QVBoxLayout, if you want the widgets to be added beneath the QTableView.
Yes Chris i'm sorry, you're right.
I thought the problem was that originally i would only the menuLayout displayed vertically, then i changed my mind and i am going to display all with vertical layout.