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

Cannot hide a QLineEdit inside a QToolBar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.3, 5.14.1
    • None
    • Linux/X11
    • reading the docs helps...

    Description

      You can create a QLineEdit in a toolbar (manually add it via addWidget()). However, afterwards the visible properties isn't honored anylonger and the widget is painted anyway.

       

      The attached minimalistic project demonstrates that. 

       

      Since the use of widgets inside toolbars is somewhat a hack by itself, I don't think this has been tested before. However, adding a "is visible" check in the QToolBar's paint routine might be easy to add.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            andreas Andreas Nicolai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes