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.


  • Moderators

    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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.