Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Screen size and resolution? [Solved with QDesktopWidget]



  • Is there anyway to get maximum screen width and height without using
    @showFullScreen();
    qrect1=frameGeometry();
    qrect1.getCoords(&zx,&zy,&maX_screen_width,&max_screen_height);
    showNormal();@

    These above codes work fine on MS Window. But, in Xubuntu they
    don't work as it suppose to.

    Thanks



  • Please ignore. Found the right class : QDesktopWidget
    Thanks.



  • Thanks for letting us know you have solved it.

    Could you please edit your title in the first post and add [solved] to it. So others will know without opening the post it's already solved. Thanks.


Log in to reply