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

Can not create a dialog with hiden borders under Wayland

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.1, 5.14.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
    • Platform/s:
      Linux/Wayland
    • Sprint:
      Shovelling Snow

      Description

      This simple script is supposed to create a modal window without borders neither title:

      import sys
      from PyQt5.QtWidgets import QApplication, QDialog, QLabel
      from PyQt5.QtCore import Qt
      
      app = QApplication(sys.argv)
      d = QDialog()
      d.setModal(True)
      d.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint)
      
      d.setMinimumWidth(400)
      d.setMinimumHeight(400)
      d.setMaximumWidth(400)
      d.setMaximumHeight(400)
      
      QLabel('Hello world', d)
      d.show()
      sys.exit(app.exec_())
      

      But the borders are still here (see image: https://ddgobkiprc33d.cloudfront.net/43f52064-21d5-4d50-b678-c59421d45ff6.jpg).

      Note that the borders disapears correctly when I run the application with QT_QPA_PLATFORM="xcb".

      It seems that this is not an issue with Sway

      I wrote the equivalent program in C++ and I get the same behavior, so it's not a problem with PyQt.

        Attachments

        For Gerrit Dashboard: QTBUG-80702
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              roipoussiere John Doe
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes