Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Selected style changed when returning from sleep
Qt 6.11 is out! See what's new in the release blog

Selected style changed when returning from sleep

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k Views 3 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.
  • kragnfrolK Offline
    kragnfrolK Offline
    kragnfrol
    wrote on last edited by
    #1

    Hi everyone,

    I recently migrated my Qt app from Qt 4.8.4 to Qt 5.5, and I have some resiliant bug I need to fix.

    If i run the app, put the computer to sleep and then get back to the app, I may have some issue with the style :

    • most of the widgets are ok
    • some widgets are display with the default style.
    • every newly opened widgets are opened with the default style
    • selecting another style is correctly applied to the whole application.

    I do not get this behaviour every time, it's more like 1 on 5 try.

    I'm exclusively running my app on Windows 7, 64bits.

    I'm also a bit new to Qt so I'm totally lost. I don't know what to try, what to search, and what informations may be needed here to get some help.

    Thanks for any tips or hints !

    Regards,

    Valerian

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

      Hi and welcome to devnet,

      To be sure I understand you correctly: these bugs are only there since you moved your application to Qt 5 ?

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

      kragnfrolK 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        To be sure I understand you correctly: these bugs are only there since you moved your application to Qt 5 ?

        kragnfrolK Offline
        kragnfrolK Offline
        kragnfrol
        wrote on last edited by
        #3

        @SGaist Hi, thanks !

        Yes no one ever experienced this problem before the Qt 5 migration.

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

          What does your application do ? Anything OpenGL related ?

          Can you create a small sample application that shows that behavior ?

          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
          • kragnfrolK kragnfrol

            Hi everyone,

            I recently migrated my Qt app from Qt 4.8.4 to Qt 5.5, and I have some resiliant bug I need to fix.

            If i run the app, put the computer to sleep and then get back to the app, I may have some issue with the style :

            • most of the widgets are ok
            • some widgets are display with the default style.
            • every newly opened widgets are opened with the default style
            • selecting another style is correctly applied to the whole application.

            I do not get this behaviour every time, it's more like 1 on 5 try.

            I'm exclusively running my app on Windows 7, 64bits.

            I'm also a bit new to Qt so I'm totally lost. I don't know what to try, what to search, and what informations may be needed here to get some help.

            Thanks for any tips or hints !

            Regards,

            Valerian

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @kragnfrol
            See also QTBUG-52728, it's probably related. It's supposed to be fixed in Qt 5.6.2.

            Kind regards.

            Read and abide by the 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