QPixmap::handle(): Pixmap is not an X11 class pixmap

2011-05-02 Thread Wolfgang Rohdewald
since updating to kubuntu 11.04 I am getting this message
while KApplication is created, but only if I use raster or opengl
as graphics system:

kpat --graphicssystem raster
QPixmap::handle(): Pixmap is not an X11 class pixmap

this seems to happen with all KDE programs.

Any idea?

kdelibs 4.6.2
qt 4.7.2

-- 
Wolfgang


Re: QPixmap::handle(): Pixmap is not an X11 class pixmap

2011-05-02 Thread Christoph Feck
On Monday 02 May 2011 16:15:42 Wolfgang Rohdewald wrote:
 since updating to kubuntu 11.04 I am getting this message
 while KApplication is created, but only if I use raster or opengl
 as graphics system:
 
 kpat --graphicssystem raster
 QPixmap::handle(): Pixmap is not an X11 class pixmap
 
 this seems to happen with all KDE programs.
 
 Any idea?
 
 kdelibs 4.6.2
 qt 4.7.2

I remember a recent discussion in #qt-labs about this, and I think it has 
already been fixed in Qt 4.8 branch.

The issue, if I understood the discussion correctly, is that even while you 
are setting a non X11 backend, it is still possible for applications to create 
an X11 native QPixmap via the fromX11Pixmap() function, but the checks in Qt 
forgot that case.

Those checks were added to make sure applications don't try to access the 
underlying X11 pixmap so that changing the default backend to raster (or 
opengl) is possible for a future version of Qt.

In other words, you likely don't need to worry about that warning, unless your 
application breaks because of it.

On the other hand, I am highly interested why kpat tries to use X11 pixmaps at 
all. Adding kde-games-devel.

Christoph Feck (kdepepo)


Re: QPixmap::handle(): Pixmap is not an X11 class pixmap

2011-05-02 Thread Hugo Pereira Da Costa

Le 05/02/2011 04:33 PM, Christoph Feck a écrit :

On Monday 02 May 2011 16:15:42 Wolfgang Rohdewald wrote:

since updating to kubuntu 11.04 I am getting this message
while KApplication is created, but only if I use raster or opengl
as graphics system:

kpat --graphicssystem raster
QPixmap::handle(): Pixmap is not an X11 class pixmap

this seems to happen with all KDE programs.

Any idea?

kdelibs 4.6.2
qt 4.7.2


What's the widget style you are using ?


I remember a recent discussion in #qt-labs about this, and I think it has
already been fixed in Qt 4.8 branch.

The issue, if I understood the discussion correctly, is that even while you
are setting a non X11 backend, it is still possible for applications to create
an X11 native QPixmap via the fromX11Pixmap() function, but the checks in Qt
forgot that case.

Those checks were added to make sure applications don't try to access the
underlying X11 pixmap so that changing the default backend to raster (or
opengl) is possible for a future version of Qt.

In other words, you likely don't need to worry about that warning, unless your
application breaks because of it.

On the other hand, I am highly interested why kpat tries to use X11 pixmaps at
all. Adding kde-games-devel.

Christoph Feck (kdepepo)




Re: QPixmap::handle(): Pixmap is not an X11 class pixmap

2011-05-02 Thread Thiago Macieira
Em Monday, 2 de May de 2011, às 16:15:42, Wolfgang Rohdewald escreveu:
 since updating to kubuntu 11.04 I am getting this message
 while KApplication is created, but only if I use raster or opengl
 as graphics system:

 kpat --graphicssystem raster
 QPixmap::handle(): Pixmap is not an X11 class pixmap

 this seems to happen with all KDE programs.

 Any idea?

It's caused by your using of the raster graphics system.

The warning was removed in Qt 4.8.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
  PGP/GPG: 0x6EF45358; fingerprint:
  E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


signature.asc
Description: This is a digitally signed message part.