View Full Version : QTreeWidget, i cant see the items
clepto
19th May 2012, 18:00
I add items to a treewidget but i cannot see them
i am usings qtjambi, here is the code, the libraryTree is the QTreeWidget
QTreeWidgetItem allItem = new QTreeWidgetItem(libraryTree);
allItem.setText(1, "All");
libraryTree.addTopLevelItem(allItem);
clepto
20th May 2012, 11:15
using this i release that it never get past the second line until i close the window
System.out.println("Add item");
QTreeWidgetItem allItem = new QTreeWidgetItem(libraryTree);
System.out.println("1");
allItem.setText(1, "All");
System.out.println("2");
libraryTree.addTopLevelItem(allItem);
System.out.println("The item has been added");
output:
Add item
QObject::startTimer: QTimer can only be used with threads started with QThread
QObject::startTimer: QTimer can only be used with threads started with QThread
1
2
The item has been added
what thread and timer has to do with that?
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.