Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Combo box or popup related components not getting displayed with Embedded Qt Quick 5.4.2
Forum Updated to NodeBB v4.3 + New Features

Combo box or popup related components not getting displayed with Embedded Qt Quick 5.4.2

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saisyam
    wrote on last edited by
    #1

    We compiled Qt 5.4.2 with Qt Quick on our custom board with ARM processor and Mali OpenGL Library. Compilation went successful and we could able to run some sample program as well. But some of the components, mostly popup related like dropdown box or combo box are not visible with QML. We are getting below error while clicking on the component area.

    QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x3c328cd0

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on last edited by
      #2

      Hi. When using the EGLFS platform, you can only have one window. Components like these you mentioned need to create another window that will be floating above the main window. That's when the error happens. You need a pure QML implementation to solve this. Please, see:

      http://doc.qt.io/qt-5/embedded-linux.html#eglfs

      As of Qt 5.3, eglfs supports a single, fullscreen GL window (for example, an OpenGL-based QWindow, a QQuickView or a QGLWidget). Opening additional OpenGL windows or mixing such windows with QWidget-based content is not supported and will terminate the application with an error message.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Saisyam
        wrote on last edited by
        #3

        Thanks for the reply Leonardo and apologies for the late reply. What is meant by pure QML implementation? We are using QML to define the combobox as well. We used QQuick Controls->ComboBox in QML, but still not shown in the UI. Please note this is a custom board where the background of the app will be controlled by a DRM to play video and on top of that QQuickView is rendered.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Leonardo
          wrote on last edited by
          #4

          Hi. The ComboBox you're using needs a popup window to show its options. That's why I'm saying it's not pure QML. It's not all contained in the same window, and its behavior is platform dependent. You should implement you own ComboBox to work around the error you're getting.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Saisyam
            wrote on last edited by
            #5

            Thanks, Leonardo. Is there any libraries or opensource code available for pure QML implementation of combobox and popup dialogs? We created one combobox component but there are some issues with that, like hover, multiselect etc. If there is already an existing implementation then it will be a good reference for us.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leonardo
              wrote on last edited by
              #6

              Hi. I'm sorry. I don't know any. Could you get rid of the error with your custom implementation?

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved