using this i release that it never get past the second line until i close the window
System.out.println("Add item");
System.out.println("1");
allItem.setText(1, "All");
System.out.println("2");
libraryTree.addTopLevelItem(allItem);
System.out.println("The item has been added");
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");
To copy to clipboard, switch view to plain text mode
output:
Add item
1
2
The item has been added
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
To copy to clipboard, switch view to plain text mode
what thread and timer has to do with that?
Bookmarks