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
Post a Comment