hi,

i have a external screen with my laptop in extension mode:

screen 1: laptop's native one
screen 2: external one
screen 2 is configured as the main display in windows 7 setup.
in my qt apps, when running it, it always starts in the main display (screen 2). is there any way to set the app to start in screen 1?

i tried the following codes, without working.

QDesktopWidget* desktop = QApplication::desktop();
QWidget *screenWidget = desktop->screen(2);

thanks a lot.