Read about event filters. Instead of implementing the mouse events in the widget, implement the event handling in a separate QObject and install the event filter on all the widgets.
Qt Code:
To copy to clipboard, switch view to plain text mode
Read about event filters. Instead of implementing the mouse events in the widget, implement the event handling in a separate QObject and install the event filter on all the widgets.
Qt Code:
To copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
qk (21st February 2017)
Bookmarks