Project

General

Profile

Bug #3623

WVBoxLayout and WTableView

Added by Emeric Poupon over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/12/2014
Due date:
% Done:

0%

Estimated time:

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?

#1

Updated by Koen Deforche over 7 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

#2

Updated by Emeric Poupon over 7 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?

#3

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed
#4

Updated by Koen Deforche over 7 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

Also available in: Atom PDF