Project

General

Profile

->addWidget(), WBoxLayout and stretch factor

Added by Vincenzo Romano over 12 years ago

If I add a WTextArea to a, say, WVBoxLayout with a stretch fator of 1 I get a text area eating up all available root in the box.

Correct, I'd say.

If, instread, I add a WTableView with the same stretch factor, I get a table eating up just a part of the available room.

Of course, if the number of rows is not eough to fill the room up, I can expect the WTableView not to fill the vertical room up.

But, with stretch factor of 1 I do expect the horizontal room to be filled up even with just one column.

Is this a bug or am I missing something?


Replies (1)

RE: ->addWidget(), WBoxLayout and stretch factor - Added by Vincenzo Romano over 12 years ago

Also WTableView's column width seem to have some issue.

There seems to be no way to adapt the column width to the content's, by means of "tv->setColumnWidth( colno,WLength::Auto )".

I definitely think I'm missing something. But what?

    (1-1/1)