[PyQt] PyQt without X11

Jason H scorp1us at yahoo.com
Thu Jul 30 04:16:08 BST 2009


Without X11, or Windows, or some other graphics system, there is no QPaintDevice for you to draw anything with. 

If you really don't have a display, you'd nee dot use a virtual frame buffer of the same quality as you'd expect to capture, that is  XxY and Zbpp. All the widgets expect some kind of paint device to paint to. Hrm, I wonder if you could get away with an SVG paint device...








----- Original Message ----
From: arnau <tokland at gmail.com>
To: pyqt at riverbankcomputing.com
Sent: Wednesday, July 29, 2009 6:02:57 PM
Subject: [PyQt] PyQt without X11

Hello,

I was wondering if it was possible to run PyQt without a X11 server when no GUI
is going to be used. I've tried with GUIenabled=False, but I still get a
segmentation fault:

---
GNU/Linux Debian Sid
python 2.5.4
python-qt 4.5.1
libqt4-webkit 4.5.2

$ python
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
[GCC 4.3.3] on linux
>>> from PyQt4.QtGui import QApplication
>>> from PyQt4.QtWebKit import QWebPage
>>> QApplication([], False)
>>> webpage = QWebPage()
Segmentation fault

---

It might be a FAQ, but I've been unable to find an answer, sorry.

thanks,
arnau

---
http://code.google.com/p/spynner/

_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



      


More information about the PyQt mailing list