LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2007, 02:00 AM   #1
mtux
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
Question why clipboard signal dosn't work?


I do it with qt but it seems that qt can not handle this!
I want any more global signal (or event) that send's clipboard change signal to my App
this is my code but it not working when text selected from a gnome application (Mozilla Firefox , ...)

connect(QApplication::clipboard(),SIGNAL(selection Changed()),this,SLOT(sltGetMeanBySelection()));

but in any kde/qt app it work fine. i want alternate way in x11 or ... ?
 
Old 08-16-2007, 11:14 PM   #2
JoeyAdams
Member
 
Registered: Jun 2006
Distribution: Kubuntu Hardy
Posts: 94

Rep: Reputation: 15
X11 doesn't have a clipboard standard except for the select/middle click method (as opposed to Ctrl+C). KDE and GNOME are supposed to allow you to interchange clipboard contents, but incompatibilities still abound. I use Konqueror and Kate on GNOME, and I notice copy/paste problems even when copying and pasting in the same KDE window! I think your problem is a bug in GNOME or Qt, not your program. There might be a way to work around it to improve things, though, but I don't know what that'd be (tell the guys at Qt or GNOME if you find one ).

In conclusion, try testing your program on KDE if you use GNOME normally, or vice versa. Maybe even try it on Fluxbox or something. I'm guessing KDE will be more likely to work when working with the clipboard, primarily because it's based on Qt, and you are making a Qt program.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP dosn't work on debian dkz Linux - Networking 0 05-01-2006 02:52 PM
kaffeine dosn't work delta_9 SUSE / openSUSE 4 02-23-2006 10:02 AM
cd /dev/hda dosn't work iarebob Ubuntu 4 01-13-2006 08:49 PM
My sound card dosn't work please help! Thantos Slackware 4 09-22-2003 08:17 AM
Consolehelper dosn't work anymore! fuzzyash Linux - General 2 08-26-2003 10:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration