[PyKDE] PyQt 4 doesn't allow to create an application, given an already open display. How to solve it?

Phil Thompson phil at riverbankcomputing.co.uk
Wed Mar 7 20:21:54 GMT 2007


On Wednesday 07 March 2007 8:07 pm, mikos at centrum.cz wrote:
> Hello,
> I want to write application in PyQt 4 which will be using real transparency
> (ARGB visuals). Qt 4 doesn't have native support for top level widgets with
> ARGB visuals, but you can get around it by opening display with xlib /
> xrender and passing it to QApplication. There is simple example how to do
> it (in C++):
> http://zrusin.blogspot.com/2006/10/argb-windows.html
>
> But in PyQt 4, I can't do it, QApplication in PyQt 4 doesn't allow you to
> pass already opened display, visual and colormap to it. As I said, in Qt 4
> it isn't problem, look here:
> http://doc.trolltech.com/4.2/qapplication.html#QApplication-4
>
> So this is only limitation of PyQt 4, not Qt 4. Can you please fix it?

Where does the Display instance come from?

Phil




More information about the PyQt mailing list