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

QLineEdit doesn't render cursor right with the clear button enabled but not shown

    XMLWordPrintable

Details

    • 1cc421eb250a2fabe55133155a5c5ab8a0e5dd31 (stable, 20.3.2014, 5.3)

    Description

      When moving mouse over QLineEdit with no text and with the clear button enabled but no shown, the cursor changes from Qt::IBeamCursor to Qt::ArrowCursor in the place where the clear button would appear if there was any text inputted.
      It changes cursor as if the clear button was actually visible there.

      See attached image for better explanation.

      Example code:

      main.cpp
      #include <QApplication>
      #include <QLineEdit>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QLineEdit line;
          line.setClearButtonEnabled(true);
          line.show();
      
          return a.exec();
      }
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            nurupo nurupo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes