C++ (Qt) const int interval = qApp->doubleClickInterval(); qApp->setDoubleClickInterval(0); qApp->setDoubleClickInterval(interval);
C++ (Qt) const int interval = qApp->doubleClickInterval(); qApp->setDoubleClickInterval(0); auto magic = [=](){qApp->setDoubleClickInterval(interval);}; QTimer::singleShot(interval, magic);
C++ (Qt) QObject::connect(treeW, &QTreeWidget::itemDoubleClicked, []{qDebug() << "doubleclicked";});