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

QApplication::beep() doesn't work on xcb

    XMLWordPrintable

Details

    • Linux/X11
    • 8ea0a82a6a771dd76df2d51c6ef3ed966a5b9b45 (qt/qtbase/5.13)

    Description

      #include <QApplication>
      #include <QTimer>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QTimer timer;
          QObject::connect(&timer, &QTimer::timeout, [](){
              qDebug("beep");
              QApplication::beep();
          });
          timer.start(1000);
      
          QWidget widget;
          widget.setGeometry(120,120,240,240);
          widget.show();
          return QApplication::exec();
      }
      

      Is not working, only if the mouse is moved.

      xcb_flush(connection);
      

      may be missing.

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            karimpinter Karim Pinter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes