What if I load up the treeview widget, then load the data when someone expands the '+' sign? This way, I can at least show a progress dialog while the children of the root are being populated, but the trouble I am having now is connecting to the expanded signal. This is the code I was using for the signal, but the compiler complains about no matching function call for connect.
connect(&rm06Root, SIGNAL(itemExpanded(QTreeWidgetItem&)), this, SLOT(loadTree()));
connect(&rm06Root, SIGNAL(itemExpanded(QTreeWidgetItem&)), this, SLOT(loadTree()));
To copy to clipboard, switch view to plain text mode
rm06Root is declared as such, as well as the code checking for expansion and then calling the function loadTree()
rm06Root->setText(0, tr("Ringmux 6 Errors - Tied to DSP 2A"));
treeWidget->addTopLevelItem(rm06Root);
if(rmx06Err.size() != 0)
if(rm06Root->isExpanded() == true)
loadTree();
rm06Root = new QTreeWidgetItem(treeWidget); // RMUX Errors - parent
rm06Root->setText(0, tr("Ringmux 6 Errors - Tied to DSP 2A"));
treeWidget->addTopLevelItem(rm06Root);
if(rmx06Err.size() != 0)
rm06Root->setChildIndicatorPolicy(QTreeWidgetItem::ShowIndicator);
if(rm06Root->isExpanded() == true)
loadTree();
To copy to clipboard, switch view to plain text mode
and i have loadTree() declared in privateSlots.....
This is the actual error message:
/errordialog.cpp:80: error: no matching function for call to `ErrorDialog::connect(QTreeWidgetItem**, const char*, ErrorDialog* const, const char*)'
Thanks!
Bookmarks