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. PyQt6 6.5 Dragging MainWindow causes other widgets to change color
Forum Updated to NodeBB v4.3 + New Features

PyQt6 6.5 Dragging MainWindow causes other widgets to change color

Scheduled Pinned Locked Moved Unsolved Qt for Python
8 Posts 2 Posters 1.3k 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.
  • D Offline
    D Offline
    Digidigital
    wrote on last edited by
    #1

    I have an application that I am porting from pyQt5 to pyQt6

    Something in Qt6 seems to have changed when I click the title bar and drag the main window around on the screen and I have no clue what to do about it...

    This is what my app looks like:
    Bildschirmfoto vom 2023-05-21 17-40-03-hell.png

    This is what it looks like when I click on the title (Tabs & Text get dark):
    Bildschirmfoto vom 2023-05-21 17-44-16.png

    This is how it looks in dark mode:
    Bildschirmfoto vom 2023-05-21 17-50-25.png

    And this is the effect when the title is clicked / window moved around on the desktop (Tabs & Text are displayed in light colors):
    Bildschirmfoto vom 2023-05-21 17-50-42-dark.png

    When I release the mouse button everything is back to normal.

    The desired effect would be that there is no color change when clicking the window's title bar - this was how it was in PyQt5.

    The screenshots are from Ubuntu but the effect is the same on Windows...

    SGaistS 1 Reply Last reply
    1
    • D Digidigital

      I have an application that I am porting from pyQt5 to pyQt6

      Something in Qt6 seems to have changed when I click the title bar and drag the main window around on the screen and I have no clue what to do about it...

      This is what my app looks like:
      Bildschirmfoto vom 2023-05-21 17-40-03-hell.png

      This is what it looks like when I click on the title (Tabs & Text get dark):
      Bildschirmfoto vom 2023-05-21 17-44-16.png

      This is how it looks in dark mode:
      Bildschirmfoto vom 2023-05-21 17-50-25.png

      And this is the effect when the title is clicked / window moved around on the desktop (Tabs & Text are displayed in light colors):
      Bildschirmfoto vom 2023-05-21 17-50-42-dark.png

      When I release the mouse button everything is back to normal.

      The desired effect would be that there is no color change when clicking the window's title bar - this was how it was in PyQt5.

      The screenshots are from Ubuntu but the effect is the same on Windows...

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you have the same issue with PySide 6 ?
      If not, you should contact the authors of PyQt to let them know about this issue.

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you have the same issue with PySide 6 ?
        If not, you should contact the authors of PyQt to let them know about this issue.

        D Offline
        D Offline
        Digidigital
        wrote on last edited by Digidigital
        #3

        @SGaist I just checked with a simple Pyside6 application and there are elements that are "highlighted" as well.

        I need to correct my previous post - I was not able to verify that the effect is the same on Windows.

        I use Ubuntu 22.04.2 LTS - X11 / Wayland -> no difference

        Normal:
        Bildschirmfoto vom 2023-05-21 23-18-53.png

        Clicked:
        Bildschirmfoto vom 2023-05-21 23-19-08.png

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Digidigital
          wrote on last edited by
          #4

          I suspect that clicking on the title-bar / dragging the window now sets some widgets to disabled or at least switches to the disabled palette... :(

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Digidigital
            wrote on last edited by
            #5

            I just checked the behaviour on Windows 10 and the application's colors do not change when clicking the title bar :(

            SGaistS 1 Reply Last reply
            0
            • D Digidigital

              I just checked the behaviour on Windows 10 and the application's colors do not change when clicking the title bar :(

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Which desktop environment are you using ?

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

              D 1 Reply Last reply
              0
              • SGaistS SGaist

                Which desktop environment are you using ?

                D Offline
                D Offline
                Digidigital
                wrote on last edited by
                #7

                @SGaist Ubuntu standard for 22.04.2 -> GNOME 42.5

                SGaistS 1 Reply Last reply
                0
                • D Digidigital

                  @SGaist Ubuntu standard for 22.04.2 -> GNOME 42.5

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  So it might be related to the gtk plugin.

                  Can you try with the fusion style ?

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

                  1 Reply Last reply
                  0

                  • Login

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