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

Gui not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: QPA: EGLFS
    • Labels:
      None
    • Platform/s:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes