[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    problem with QT Clipboard
From:       ian reinhart geiser <geiseri () yahoo ! com>
Date:       2001-10-25 15:24:03
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I dunno whos fault this one is so I am going to start here.

I have an issue with the QT Clipboard interface as shown in the follwoing 
code:

// This works
QClipboard *foo = QApplication::clipboard();
foo->setImage( someQImage);
....
QImage myNewImage = foo->image();

// This dose not
QClipboard *foo = QApplication::clipboard();
foo->setPixmap( someQPixmap);
....
QImage myNewImage = foo->image();


Now normally this is okay, but the problem is A) how the heck do i know what 
is on the clipboard and B) KPaint crashes on startup because it tries to read 
a pixmap.  This also breaks KView and i think KPresenter, and should break 
all other applications that are getting graphics data off of the clipboard.

Currently if you try to read a pixmap off the clipboard and it contains a 
qimage the application will crash.  The error seems to be some blather about 
running out of memory and it tanks in qpixmap_X11.cpp on line 630.

I have no clue even how to address this?

Ideas?
- -ian reinhart geiser

- -- 
========================================
Hackers are just a migratory lifeform with a tropism for computers.
========================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE72C6TPy62TRm8dvgRAm12AKCOslaeLrMcZc/7VeZ+Sr/07rGWtgCfdFXj
EsBojiRCYGJ1zfBoHTudPsY=
=jGKH
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic