c++ - Copy QTableWidget cell content to clipboard -


i built context menu opens right-click on cell in qtablewidget. me create command copy contents of cell clipboard? examples have found on web bad.

thanks in advance

you can in slot connected menu action in following way:

qclipboard *clipboard = qapplication::clipboard(); clipboard->settext(tableitem->text()); 

Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -