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

QLineEdit ignores visibility change in added QAction

XMLWordPrintable

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

      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);

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes