Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120490

Android: primaryScreen() width() and height() gives wrong data

XMLWordPrintable

    • Android

      Following tiny code reports way different result if compare with Qt5.15

       

      #include <QApplication>
      #include <QScreen>
      #include <QDebug>int main(int argc, char *argv[])
      {     
      QApplication a(argc, argv); 
      auto const pScreen = a.primaryScreen(); 
      MainWindow w;     
      w.show();     
      qDebug("Screen resolution is %i %i", pScreen->size().width(), pScreen->size().height());       
      return a.exec();
      } 

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            nikunj Nikunj Arora
            irfan.omair@digia.com Irfan Omair
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes