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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -