How to implement qt application just like drag and drop of inbox contents in gmail..??



  • hi friends ,

    i have implemented a drag and drop between two qtablewidget and its working fine what i need is to implement the dragging appearance just like how it looks if we drag a inbox content into trash in gmail. im not getting how to do that so can anyone help me regrading this please..!!!!
    thank you.



  • Hello ecmanja,

    you can try this:

    @// take item from table first
    QTableWidgetItem* item = table->takeItem(row, column);

    // set item in second table
    table1->setItem(row1, column1, item); @

    You can do this with connecting itemPressed SIGNAL


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.