Hi,

I have an issue with scaling screen height and width to display my app on the desktop in full screen mode. I am using QDesktopWidget to scale the screen height and width and set these values to the mainwindow. But while displaying, my app starts somewhere randomly on the screen and half of the part goes beyond the screen. Do I have to use any extra parameters. My code is
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. MainWindow w;
  5. QDesktopWidget *desktop = QApplication::desktop();
  6. int screenWidth = desktop->width();
  7. int screenHeight = desktop->height();
  8. w.setFixedSize(screenWidth,screenHeight);
  9. w.show();
  10. return a.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

Any suggestions would be helpful.

Thank You,

Baluk