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

Wayland: QMessageBox content clipped on COSMIC Desktop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.10.1, 6.11.0 Beta3
    • 6.9.3, 6.10.0 RC
    • QPA: Wayland
    • None
    • Linux/Wayland
    • 8fdf90174 (dev), 57aa92fa0 (6.10)

      Tested on COMSIC Desktop Epoch 1 Beta 1, under which Qt currently uses Client Side Decorations.

      Reproducer is very simple:

      #include <QApplication>
      #include <QMessageBox>
      #include <QTimer>
      
      int main(int argc, char** argv)
      {
          QApplication app(argc, argv);
          QTimer::singleShot(0, &app, []() {
              QMessageBox::warning(
                  nullptr,
                  "A dialog box",
                  "The file Untitled has been modified.\nDo you want to save your changes?",
                  QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
          });
          
          return app.exec();
      } 

      When the dialog first appears, some of the text is clipped and buttons are shrunk and overflowing - see "bad" screenshots. After interacting with the window frame in some way (i.e by trying to resize or maximizing and then restoring) - it is then shown properly.

      This is identical in both the bradient and adwaita decoration plugins (looks slightly worse on adwaita).

      Does not happen under GNOME as shipped with Ubuntu 22.04 LTS - in there bradient decorations look OK from the start, but Adwaita decorations are broken (though in a slightly different way). This matches https://bugreports.qt.io/browse/QTBUG-137253 - so this one is probably a different issue.

        1. adwaita-bad.png
          7 kB
          Igor Khanin
        2. bradient-bad.png
          8 kB
          Igor Khanin
        3. bradient-good.png
          10 kB
          Igor Khanin
        4. QTBUG-140847-wayland-debug.log
          36 kB
          Igor Khanin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            igkh Igor Khanin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes