int screenWidth = QApplication::desktop()->width(); int screenHeight = QApplication::desktop()->height();