Linux has three Selection mechanism for copy and past operations: PRIMARY, SECONDARY, CLIPBOARD.
How can i get both CLIPBOARD and PRIMARY selections to set a QLineEdit's text.
when a text is selected in any window then PRIMARY Selection occurs. And the text is implicitly exists in PRIMARY Selection buffer. When user clicks middle mouse button text is pasted to focused window. I need the text as soon as it appears/changes in PRIMARY Selection buffer.
For example double clicking a text highligths the text, how can i get this text automatically into a qwidget(after double clicking). I wrote similar operation via QClipboard but it needs to explicit copy (menu->copy or Ctrl+C) on most of editors and text shown windows.
If i use QClipboard it runs perfectly (because it automatically copies the selection to QClipboard i think) on QT Assistant's text but Open office word processor or Mozilla selections needs Ctrl+C.
Bookmarks