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

The QLineEdit has a outer border line with the default style, can't remove it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      shiboken2==5.14.0 (from PySide2==5.14.0)
      macOS Cataline 10.15.1
      Python 3.7.4
    • Platform/s:
      macOS

      Description

      When the QLineEdit got focus, it will show a outer border line at the default style, when change the application style to "Fusion", the line will gone.

      self.lineEdit = QLineEdit(self)
      self.lineEdit.setGeometry(QRect(20, 20, 100, 30))
      self.lineEdit.setStyleSheet("QLineEdit:focus

      { border-radius: 5px; border:1px solid #c6255e;}

      ");
      self.lineEdit.setFrame(False)

      stackoverflow link

        Attachments

        1. main.py
          0.9 kB
        2. edit.png
          edit.png
          17 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            chans chans s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes