Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2014

QDockWidget's QTabBar has two different color

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.4
    • PySide
    • None
    • macos 11.6.5
      python 3.9.12
      pyside6 6.3.1
    • macOS

      demo code(then move two dock into a single group), the two color issue is shown in the attachment:

       # coding: utf-8

      import sys
      import platform

      from PySide6.QtWidgets import QApplication, QMainWindow, QDockWidget, QTextEdit
      from PySide6.QtCore import Qt, QSysInfo

      def main():
      app: QApplication = QApplication(sys.argv)
      window = QMainWindow()
      dock1 = QDockWidget("dock1")
      dock2 = QDockWidget("dock2")
      for dock in [dock1, dock2]:
      dock.setFeatures(dock.DockWidgetFloatable | dock.DockWidgetMovable)
      window.addDockWidget(Qt.LeftDockWidgetArea, dock1)
      window.addDockWidget(Qt.RightDockWidgetArea, dock2)

      os_info = QTextEdit()
      os_info.setText(platform.version())
      dock1.setWidget(os_info)

      qt_info = QTextEdit()
      info = QSysInfo()
      qt_info.setText(f"

      {info.kernelVersion()}

      ,

      {info.prettyProductName()}

      ,

      {info.productVersion()}

      ")
      dock2.setWidget(qt_info)

      window.show()
      app.exec()

      if _name_ == '_main_':
      main()

        1. 8scjM.png
          8scjM.png
          37 kB
        2. pyside2014.py
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            lombdo Lombdo E
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes