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. windowsvista style causes hover animation to 'flicker' or 'jitter'
Forum Updated to NodeBB v4.3 + New Features

windowsvista style causes hover animation to 'flicker' or 'jitter'

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 108 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.
  • T Offline
    T Offline
    Trist
    wrote last edited by
    #1

    Hello all,

    When I set 'windowsvista' as the style, hovering over widgets causes them to flicker. See GIF for details.

    hover jitter.gif

    Here is the code to reproduce it in a stock standard fresh install of Qt with Qt Creator:

    #include <QApplication>
    #include <QStyleFactory>
    #include <QSpinBox>
    #include <QVBoxLayout>
    #include <QCheckBox>
    #include <QMainWindow>
    #include <QRadioButton>
    
    int main(int argc, char *argv[])
    {
        auto a = QApplication(argc, argv);
        a.setStyle(QStyleFactory::create("windowsvista"));
    
        auto w = QMainWindow();
    
        auto* l = new QVBoxLayout();
        l->addWidget(new QSpinBox());
        l->addWidget(new QCheckBox());
        l->addWidget(new QRadioButton());
    
        auto* top = new QWidget();
        top->setLayout(l);
    
        w.setCentralWidget(top);
    
        w.show();
        return a.exec();
    }
    

    Unfortunately we can't just use one of the other themes/styles due to... shall we say... bureaucratic reasons.

    For context. We are upgrading our application from Qt version 5.6.3 to 6.8.2.
    My machine is running Windows 11 and as far as I know this issue also happens on Windows 10 machines.
    Using MSVC2022 64bit.

    As an aside, qwindowsvistastyle.dll is present and being loaded. We already encountered that problem and solved it.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Trist
      wrote last edited by
      #2

      I've just discovered that if I set my screen's DPI scaling to %100, %200, or %300, then everything looks fine and there is no jitter.
      Also, if I change it to %225, then only the spinbox jitters and the radio box and checkbox are fine.
      The GIF above was recorded at %150 scaling.

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

        Hi and welcome to devnet,

        Can you try with the latest of the 6.9 series ?

        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
        • T Offline
          T Offline
          Trist
          wrote last edited by
          #4

          I can confirm that it still happens with Qt version 6.9.1.

          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