Wong
5th January 2011, 02:12
I run into trouble recent when use QGridLayout
This is my mainwindow. A QTabWidget, and add two QWidget tabs.
Tab use QGridLayout to arrange some labels.
http://i627.photobucket.com/albums/tt360/wuchuanwang/1-1.jpg
The label can drop, and show after accept text.
But when text is too long, label stretch as same as text's length. I'm very worry, I want to fix proportion of each label's width and height. I try to set wordWrap true. But failed.
http://i627.photobucket.com/albums/tt360/wuchuanwang/2-1.jpg
How can I do that?
My english is poor, so maybe it's difficult to understand, sorry!:)
This is my mainwindow. A QTabWidget, and add two QWidget tabs.
Tab use QGridLayout to arrange some labels.
http://i627.photobucket.com/albums/tt360/wuchuanwang/1-1.jpg
The label can drop, and show after accept text.
But when text is too long, label stretch as same as text's length. I'm very worry, I want to fix proportion of each label's width and height. I try to set wordWrap true. But failed.
http://i627.photobucket.com/albums/tt360/wuchuanwang/2-1.jpg
How can I do that?
My english is poor, so maybe it's difficult to understand, sorry!:)