Dear,
I have a qtablewidget. I want to add popupmenu when user right mouse click in item on qtablewidget.
this is my script :
popupmenu show if item in tablewidget not empty. I try to use this script but I can not see popupmenu in my tablewidget. what wrong in my code? can you give me and example about popupmenu with tabelwidget (maybe copy paste operation)Code:
{ int brs1 = tblWidgetInput->currentRow(); if (texktnya) { if ( event->button() == Qt::RightButton ) { menu.addAction(coba1); menu.addAction(coba2); menu.exec(); } } }
thank for your attention
regardly
toto