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

Wayland: ToolTip resets the mouse cursor shape

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9.0
    • None
    • kwin_wayland and few other wayland compositors
    • Linux/Wayland

    Description

      1. Launch the following application:

      #include <QApplication>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);    QWidget w;
          w.setCursor(Qt::PointingHandCursor);
          w.setToolTip("Test");
          w.show();    
          return a.exec();
      }
      

      2. Window has "PointingHandCursor" cursor.
      3. Wait for tooltip to appear.

      Result: Mouse cursor changes to the default "ArrowCursor". When you close the tooltip by clicking on empty window area, it's remains default instead of "PointingHandCursor", but tooltip no longer exists.

       

       

      It often happens in QtCreator, mouse cursor resets to "PointingHandCursor" because of tooltips in text editor.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes