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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Labels:
      None
    • Commits:
      288bfb0bbd778fdfa6ac9fdcdc1afc19ec13aeaf

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes