Kapil
28th April 2006, 09:15
Hi...
There is a small problem in it.. whenever i double click on any of my QTreeWIdgetItem, it does not do anything.. infact does not respond to it..
HAve followed all the conventions...
like declaring func in slots and calling the Q_OBJECT...
also i tried to put the arguments as that of signals and slots as same but still it did not work..
i am posting the few lines of code whcih are not wrkin... plz tell what can be the fault in it.. it even does not show me any errors while compiling.. its just that it doesnt work...
QList<QTreeWidgetItem *> widgetList = m_uiMainWindow.routingFlowTree->findItems (QString("Add Design"),Qt::MatchRecursive);
if(widgetList.size() != 0)
{
QTreeWidgetItem *pAddDesignItem = widgetList.takeFirst();
QObject::connect(m_uiMainWindow.routingFlowTree, SIGNAL(itemDoubleClicked(*pAddDesignItem , 0)), this, SLOT(onDoubleClickAddDesignItem()));
}
Thanking you,
with regards,
Kapil
There is a small problem in it.. whenever i double click on any of my QTreeWIdgetItem, it does not do anything.. infact does not respond to it..
HAve followed all the conventions...
like declaring func in slots and calling the Q_OBJECT...
also i tried to put the arguments as that of signals and slots as same but still it did not work..
i am posting the few lines of code whcih are not wrkin... plz tell what can be the fault in it.. it even does not show me any errors while compiling.. its just that it doesnt work...
QList<QTreeWidgetItem *> widgetList = m_uiMainWindow.routingFlowTree->findItems (QString("Add Design"),Qt::MatchRecursive);
if(widgetList.size() != 0)
{
QTreeWidgetItem *pAddDesignItem = widgetList.takeFirst();
QObject::connect(m_uiMainWindow.routingFlowTree, SIGNAL(itemDoubleClicked(*pAddDesignItem , 0)), this, SLOT(onDoubleClickAddDesignItem()));
}
Thanking you,
with regards,
Kapil