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

No dialogs can be shown on eglfs because createPlatformDialogHelper() is not implemented

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.3
    • QPA: EGLFS
    • None
    • Linux on an embedded device using eglfs and Qt.Controls 2.x.

    • Linux/Other display system

    Description

      I try to show some dialogs using Qt.labs.platform and this results in output like this:

       

      qt.labs.platform.dialogs: FileDialog -> QObject(0x0)
      

      This should be this code:

       

      bool QQuickPlatformDialog::create()
      {
       if (!m_handle) {
       if (useNativeDialog())
       m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformDialogHelper(m_type);
       if (!m_handle)
       m_handle = QWidgetPlatform::createDialog(m_type, this);
       qCDebug(qtLabsPlatformDialogs) << qmlTypeName(this) << "->" << m_handle;
       if (m_handle) {
       onCreate(m_handle);
       connect(m_handle, &QPlatformDialogHelper::accept, this, &QQuickPlatformDialog::accept);
       connect(m_handle, &QPlatformDialogHelper::reject, this, &QQuickPlatformDialog::reject);
       }
       }
       return m_handle;
      } 
      

      createPlatformDialogHelper() does not appear anywhere inside qtbase/src/plugins/platforms/eglfs/ so I guess this is the culprit.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            rebemlix Rolf Eike Beer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes