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

Can not create a dialog with hiden borders under Wayland

    XMLWordPrintable

Details

    • Linux/Wayland
    • e21230a3b8b4aca50121c373a6ffea770807d4a0 (qt/qtwayland/5.15.0)
    • 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

        1. wayland-debug.log
          20 kB
          Johan Helsing

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: