PDA

View Full Version : QT Layout problem



bod
1st July 2008, 11:54
I want to add a textedit widget to my window. It has a "QHBoxLayout" layout.
I'm tryin to add this textedit but I cannot. I think, it places the textedit under the treewidget.
I don't understand why.
Can u help me pls?
Here is my code:

glWidget = new GLWidget;
tree = new QTreeWidget;
tree->setHeaderLabel("Items");
qtItem = new QTreeWidgetItem(tree);
qtItem->setText(0, tr("QtLogo"));

jpn
1st July 2008, 13:29
How is this code relevant to the problem? There is no references to layouts or QTextEdits at all.

EDIT: Besides the same problem seems to be being solved in another thread. Do not double post, thank you.