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

QLineEdit's clear action takes up space even when not visible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • None
    • 5.8.0
    • None
    • 288bfb0bbd778fdfa6ac9fdcdc1afc19ec13aeaf

      QLineEdit clear action's isVisible() returns always true, even when the button of the action is not actually visible in the line edit. If there is another custom action in the line edit, the (invisible) clear button will just waste space. The attached minimal test case reproduces the issue: there shouldn't be any white space between the red square (which is the custom action) and the right end of the line edit.

        1. QLineEditClearAction.zip
          4 kB
          Elvis Angelaccio
        2. Screenshot_20170405_231816.png
          7 kB
          Elvis Angelaccio
        3. qtbug59957.zip
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mmutz Marc Mutz
            elvisangelaccio Elvis Angelaccio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes