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

Popups don't work without ApplicationWindow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0 Alpha
    • Fix Version/s: 5.6.0 RC
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Mageia Linux Cauldron x86_64, gcc 5.3
    • Commits:
      7fc567eda8a187e365f4c29c6e8f08440bf31218

      Description

      If I place ComboBox into Dialog from QtQuick Controls, it cannot show items list on click and I see the following error in the console:

      QML Panel: is not in an ApplicationWindow.

      It happens even if main window is implemented as ApplicationWindow from Qt.labs.controls.
      This is due to the QQuickPopup::show() requires, that popup is placed into QQuickApplicationWindow.

      Program to reproduce:

      import QtQuick 2.5
      import Qt.labs.controls 1.0
      import QtQuick.Dialogs 1.2
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Dialog {
              visible: true
      
              ComboBox {
                  model: [
                      "1",
                      "2"
                  ]
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes