Skip to main content
GameDev.net gamedev.net
🔒 Locked

QT 2.3 problem !

Started by encom Jul 31, 2002 at 3:55 AM 1 replies 350+ views
Original Post
encom
encom
Hi, i have made a QTabWidget with 2 tabs (QWidget) tab1 and tab2. I have inserted in tab1 and tab2, two QMultiLineEdit. The pb : when i resize the window, the tabs (1 & 2) resize because it''s expandable, but the QMultiLineEdit doesn''t do the same, it keep the same size. the question : How to make the QMultiLineEdit Expandable ? I try to use setSizePolicy() but it doesnt work ! thanks a lot.
mentat
mentat
here is how I did for QGLWidget derived class, perhaps it helps;

// Make a big widget that will grab all space in the middle.
XGlWindow *bigWidget = new XGlWindow(this );

bigWidget->setMinimumWidth(500);
bigWidget->setMinimumHeight(500);
bigWidget->resize(500, 500);
QSizePolicy pol = bigWidget->sizePolicy();
pol.setVerData(QSizePolicy::Expanding);
pol.setHorData(QSizePolicy::Expanding);
bigWidget->setSizePolicy(pol);

cheers..
-----------my quote is under construction
encom
encom
hmmmmm,

it doesnt work, because when the widget is shrunk the scroll bar doesn''t appear... so data will be hiddden !

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.