// connection
connect(m_uiMainWindow.
routingFlowTree,
SIGNAL(itemDoubleClicked
(QTreeWidgetItem*,
int)),
this,
SLOT(onDoubleClickAddDesignItem
(QTreeWidgetItem*,
int)));
// slot
void Something
::onDoubleClickAddDesignItem(QTreeWidgetItem* item,
int column
) {
QList<QTreeWidgetItem
*> widgetList
= m_uiMainWindow.
routingFlowTree->findItems
(QString("Add Design"),Qt
::MatchRecursive);
if (widgetList.size() > 0 && item == widgetList.takeFirst())
{
// do your thing
}
}
// connection
connect(m_uiMainWindow.routingFlowTree, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)), this, SLOT(onDoubleClickAddDesignItem(QTreeWidgetItem*, int)));
// slot
void Something::onDoubleClickAddDesignItem(QTreeWidgetItem* item, int column)
{
QList<QTreeWidgetItem *> widgetList = m_uiMainWindow.routingFlowTree->findItems(QString("Add Design"),Qt::MatchRecursive);
if (widgetList.size() > 0 && item == widgetList.takeFirst())
{
// do your thing
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks