Qt Code:
// focus { ... } // selection { ... }To copy to clipboard, switch view to plain text mode
Qt Code:
// focus { ... } // selection { ... }To copy to clipboard, switch view to plain text mode
J-P Nurmi
Tried, but Has_Focus is set only when item is current and view has focus and i need to draw current item different even if view have no focus so this state is rather useless.
Any other ideas?
I thought about setting ModelIndex in delegate when current changes but it doesn't fits to typical delegates usage and i'm not sure if i want to implement such workarounds.
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
I'd suggest using QPersistentModelIndex if you decide to store an index. An ugly but quite common workaround to deliver information from view to delegate is to assume that the view is parent of the delegate. This way you can also easily check if
Qt Code:
if (view && view->currentIndex() == index)To copy to clipboard, switch view to plain text mode
J-P Nurmi
Bookmarks