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

Cannot hide a QLineEdit inside a QToolBar

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes