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

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.14.0
    • Widgets: Style Sheets
    • None
    • shiboken2==5.14.0 (from PySide2==5.14.0)
      macOS Cataline 10.15.1
      Python 3.7.4
    • 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. edit.png
          edit.png
          17 kB
        2. main.py
          0.9 kB
        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
            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