Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QColorDialog on win11, the input box is overwritten
Qt 6.11 is out! See what's new in the release blog

QColorDialog on win11, the input box is overwritten

Scheduled Pinned Locked Moved Solved Qt for Python
qt for python
3 Posts 2 Posters 488 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uoky
    wrote on last edited by uoky
    #1

    i use python 3.12.5,and pyqt6 6.7.1, on win10 is normal
    but on win11, this QColorDialog all the input box is overwritten,
    how can i do? Can someone help me?thank you!

    the use code:
    color = QColorDialog(self).getColor(
    text_color, self, get_label('setting_font_color', 'XXX'))

    error.png

    the pyqt6 version info:
    Name: PyQt6
    Version: 6.7.1
    Summary: Python bindings for the Qt cross platform application toolkit
    Home-page: https://www.riverbankcomputing.com/software/pyqt/
    Author:
    Author-email: Riverbank Computing Limited info@riverbankcomputing.com
    License: GPL v3
    Location: D:\Yuanzehong\install\Python312\Lib\site-packages
    Requires: PyQt6-Qt6, PyQt6-sip
    Required-by:

    the win11 info:
    版本 Windows 11 专业版
    版本号 23H2
    安装日期 ‎2024/‎8/‎16
    操作系统版本 22631.3880
    体验 Windows Feature Experience Pack 1000.22700.1020.0

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Try forcing the style to windowsvista.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Try forcing the style to windowsvista.

        U Offline
        U Offline
        uoky
        wrote on last edited by
        #3

        @SGaist thank you for your help,
        QApplication.setStyle(QStyleFactory.create('windowsvista')) is effective

        1 Reply Last reply
        0
        • U uoky has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved