Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Enabling drag for a single cell in a qtablewidget in qt ..??



  • hi friends ,
    i have created two cells in a qtablewidget i want to enable drag option only for one cell how can i achieve it .!!!!
    @ table->setDragEnabled(true); @
    i used this line but it enables all cell in a tablewidget but i want for only one cell in a table..??


  • Lifetime Qt Champion

    Hi,

    One thing you can try is: update the flags of all the other items and remove Qt::ItemIsDragEnabled

    Hope it helps


Log in to reply