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

Gui not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.2.0
    • QPA: EGLFS
    • None
    • Linux/Yocto

    Description

      Hello everyone!

      I made some playing with QT6, but I wasn't very satisfied with the results. I have just small rectangle on the screen instead of Label. Same results for OpenGL and linuxfb.

       

      #include <QApplication>
      #include <QWidget>
      #include <QHBoxLayout>
      #include <QLabel>
      int main(int argc, char** argv) {
         QApplication app(argc, argv);
         QWidget window;
      
         QLabel *label = new QLabel("CCP!", 0);
      
       
         QHBoxLayout *layout = new QHBoxLayout();
         layout->addWidget(label);
         window.setLayout(layout);
         window.show();
         return app.exec();
      }
      

       

       

      export QT_QPA_EGLFS_KMS_CONFIG=/etc/qt6/eglfs_kms_cfg.json
      export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
      export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
      ./qHelloLabel -platform eglfs
      

      How to get it working?

      Regards,

      Andy

      // Sidenote: QT5 works fine

      Attachments

        1. IMG_20211206_171417.jpg
          IMG_20211206_171417.jpg
          570 kB
        2. qt6.log
          21 kB

        Activity

          People

            lagocs Laszlo Agocs
            andy99 A -
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: