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

QLineEdit ignores visibility change in added QAction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.2.1
    • None
    • Up-to-date Debian Testing with Qt packaged in Debian.

    Description

      I created a QLineEdit and adding a QAction.
      When switching the QAction to invisible, it stays visible in the QLineEdit. It does not respond to clicks, but is still there. It should become invisible.

      Example code:

      QLineEdit *edit = new QLineEdit(this);
      QAction *action = edit->addAction(QIcon("/path/to/icon"), QLineEdit::ActionPosition::LeadingPosition);
      action->setVisible(false);

      Attachments

        Issue Links

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

          Activity

            People

              peppe Giuseppe D'Angelo
              borach Borach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes