Project

General

Profile

Actions

Bug #3623

closed

WVBoxLayout and WTableView

Added by Emeric Poupon about 10 years ago. Updated about 10 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?

Actions #1

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

Actions #2

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?

Actions #3

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions #4

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

Actions

Also available in: Atom PDF