[PyQt] how to get X info in qt

Mark Summerfield mark at qtrac.eu
Tue May 29 10:06:02 BST 2007


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 QApplication's API, and maybe
QWidget.

-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu



More information about the PyQt mailing list