Bug #3623
closedWVBoxLayout and WTableView
0%
Description
Hello,
I'm using the following design:
root widget
-> VBoxLayout -> nav-bar, contents
contents
-> VBoxLayout -> 3 WTableView
The WTableViews use a dbo query model to get data.
If there is no data, the table views have the same height.
If each table has the same underlying amout of data, it is still OK.
If one of the table has far less data than other, it's significantly smaller!
Sounds like a bug?
Updated by Koen Deforche about 10 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
Hey,
That's intentional. The 'preferred height' will reflect the number of results each table view has.
You'll get the behaviour you are looking for by giving each table an equal height using setHeight().
Koen
Updated by Emeric Poupon about 10 years ago
Koen Deforche wrote:
Hey,
That's intentional. The 'preferred height' will reflect the number of results each table view has.
You'll get the behaviour you are looking for by giving each table an equal height using setHeight().Koen
Oh, didn't know that!
But how can I use the setHeight method? I'm afraid I don't know the total height?
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed
Updated by Koen Deforche about 10 years ago
Hey,
The height is only used to guide the layout manager. What height should it assume for the table view if it isn't the height that would be needed for it to display the entire model?
Koen