Kronen
5th November 2009, 05:34
http://s4.subirimagenes.com/otros/3508586sash.jpg
I'm learning Qt and trying to code a multiplayer card game and I have some doubts managing the geometry of widgets.
In the image above there are the scene, the QListWidget with the players, and a QTextBrowser for the chat and I want the QListWidget not to take its sizeHint, so the QTextbrowser expands to the left, how could I do that?.
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(listWidget);
layout->addWidget(textBrowser);
QVBoxLayout *layout2 = new QVBoxLayout;
layout2->addWidget(view);
layout2->addLayout(layout);
QWidget *window = new QWidget;
window->setLayout(layout2);
Thanks, and sorry my bad english.
I'm learning Qt and trying to code a multiplayer card game and I have some doubts managing the geometry of widgets.
In the image above there are the scene, the QListWidget with the players, and a QTextBrowser for the chat and I want the QListWidget not to take its sizeHint, so the QTextbrowser expands to the left, how could I do that?.
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(listWidget);
layout->addWidget(textBrowser);
QVBoxLayout *layout2 = new QVBoxLayout;
layout2->addWidget(view);
layout2->addLayout(layout);
QWidget *window = new QWidget;
window->setLayout(layout2);
Thanks, and sorry my bad english.