[PyQt] how to get X info in qt

2007-05-29 Thread Marco
Hi, In a Qt program, can I get the window size, colour depth, and another infomation? Thanks!! -- LinuX Power ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] how to get X info in qt

2007-05-29 Thread Mark Summerfield
On Tue 29-May-07, Marco wrote: Hi, In a Qt program, can I get the window size, colour depth, and another infomation? Thanks!! app = QApplication(sys.argv) desktop = app.desktop() That'll give you a QDesktopWidget that gives you the screen geometry. Not sure about the others, could look at

Re: [PyQt] how to get X info in qt

2007-05-29 Thread David Boddie
On Tuesday 29 May 2007 16:42:39 +0800, Marco wrote:   In a Qt program, can I get the window size, colour depth, and another infomation? On X11 systems, you can just call x11Info() on a QWidget to get some information about the colour depth - see the QX11Info class documentation for details.

[PyQt] Problem compiling PyQt4 dbus support on openSUSE 10.2

2007-05-29 Thread Detlev Offenbach
Hi, I updated my openSUSE 10.2 installation to contain dbus-1-python 0.80.1. However, configure.py cannot find the dbus-python.h file. The command pkg-config --cflags-only-I --libs dbus-1 gives this output: -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -ldbus-1 However, the

[PyQt] QTabWidget Auto-resize

2007-05-29 Thread Reinaldo Carvalho
Hi!! I have a QDialog with only a QTabWidget, how do a QTabWidget auto-resize if a QDialog have your size maximized? Thanks... -- Reinaldo Carvalho ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] QTabWidget Auto-resize

2007-05-29 Thread Henrik Pauli
On 5/30/07, Reinaldo Carvalho [EMAIL PROTECTED] wrote: Hi!! I have a QDialog with only a QTabWidget, how do a QTabWidget auto-resize if a QDialog have your size maximized? Thanks... Never worked with that thing before, but I'd guess you can put it into one of the Layouts, and that'll take