Thanks for replying! The TreeWidget that is the source for the text is in a dock widget. It is not the same TreeView that is showing the Item Delegate. The Item Delegate is editing text lines for a report writer. The dock widget is showing a heirarchical list of available tables and table fields for inserting into those report lines. I am currently connecting the itemdoubleclicked signal from the dock widget tree to the item delegate as in:
RWDelegate *del = new RWDelegate( );
view->setItemDelegate( del );
RWDelegate *del = new RWDelegate( );
view->setItemDelegate( del );
connect( this->getFieldsList(), SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int) ), del, SLOT( insertText( QTreeWidgetItem *, int ) ) );
To copy to clipboard, switch view to plain text mode
I want to insert the text() from the itemDoubleClicked signal into the specific ItemDelegate QTextField that has focus. But I don't know how to get the signal to relay from the delegate to the editor widget and/or how to get the editor widget with focus in the delegate insertText slot() in order to insert it. Any suggestions are most welcome
Bookmarks