[Qt-interest] QTreeWidgetItem and double-click

NARCISO, Rui RUI.NARCISO at airbus.com
Tue Mar 31 19:08:30 CEST 2009


Hi all

I have a QTreeWidget with standart QTreeWidgetItems.
I would like that when a user double-clicks on a given item/column, that instead of selecting the entire line onthe column gets selected and the text within be copied so it can be pasted somewhere else (a typical copy-paste action).

How to about implementing this?

I already managed to connect the signal itemDoubleClicked of each item to a specifica funtion, the part I don't know how to do it is to select only the column and copy the data to the clipboard...

Rui


The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.





More information about the Qt-interest-old mailing list