PDA

View Full Version : screen size



eric
28th December 2007, 15:50
1. Is it possible (using Qt4) to find out what the dimensions of the computer screen are?

2. How to open a window so that its top left corner is in the top left corner of the computer screen?

Thank you!

marcel
28th December 2007, 15:53
1. See QDesktopWidget::screenGeometry() (http://doc.trolltech.com/latest/qdesktopwidget.html#screenGeometry)
2. See QWidget::move() (http://doc.trolltech.com/latest/qwidget.html#move)

jacek
28th December 2007, 15:54
Ad 1. See QApplication::desktop().
Ad 2. Just move() it to (0,0).