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

ComboBox popup does not take Safe Area into account

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.9.2
    • Quick: Controls 2
    • None
    • Android 15
    • Android
    • 2025wk36s2QtforAndroid

      ComboBox popup overlaps and thus conflicts with system's area.

      It should stay inside of Safe Area always.

      Screenshot and sample are attached.

      Addition #1. Workaround: 
      1) Set an id to the app main window (e.g. appWindow)
      2) Add the following code to the ComboBox element:

      Component.onCompleted: {
                  //////////////////////////////////////////////////////////////////////
                  // QTBUG-139694 workaround
                  popup.topMargin = Qt.binding(() => appWindow.SafeArea.margins.top);
                  popup.leftMargin = Qt.binding(() => appWindow.SafeArea.margins.left);
                  popup.bottomMargin = Qt.binding(() => appWindow.SafeArea.margins.bottom);
                  popup.rightMargin = Qt.binding(() => appWindow.SafeArea.margins.right);
                  //////////////////////////////////////////////////////////////////////
              } 

        1. Screenshot_20250902_050946.jpg
          47 kB
          Alexander Dyagilev
        2. untitled16.zip
          1 kB
          Alexander Dyagilev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            assam Assam Boudjelthia
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes