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. Qt5 Desktop app not rendering widgets on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Qt5 Desktop app not rendering widgets on Windows 7

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 427 Views
  • 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.
  • C Offline
    C Offline
    cen1
    wrote on last edited by cen1
    #1

    What: Qt Desktop application (standard widgets, not QML)
    Qt version: 5.15.2, compiled with msvc2019 toolchain in release mode.

    Compile flags:
    -v
    -release
    -opensource
    -nomake
    examples
    -opengl
    desktop
    -platform
    win32-msvc

    Updated from 5.6 to 5.15.2 earlier this year, app works ok on Windows 10 and 8 but fails to render on Windows 7. Code is 95% the same, minor changes and web engine added as dependency but not actually used anywhere (sitting in a hidden tab for future use).

    Instead, it renders whatever is in the background at the window position. What is funny is that it looks like all widgets are there and tooltips work, if you know where the buttons are you can even click them. So the app is fully functional except widgets are not rendering.

    See attached screenshot, what you see is desktop background rendered. I tested in a Win7 32bit VM after getting reports from a few users who are still on that operating system.

    I did a check with dependency walker and all libraries are present as they should be, just some bluetooth dll etc. as a sub-dependency of web engine dll is missing. Doubt it has anything to do with it.

    I am not sure whether DX or opengl is in use.

    Any pointers how to debug this?
    Capture.PNG

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @cen1 said in Qt5 Desktop app not rendering widgets on Windows 7:

      Any pointers how to debug this?

      As always - simplify your code until it works fine. Or start with a minimal app and add stuff until it stops working.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • C Offline
        C Offline
        cen1
        wrote on last edited by cen1
        #3

        New observation: app works if I incude opengl32sw.dll.

        Question is, why? I mean, I get "why" but why would there be no opengl acceleration on W7 machines?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Because your VM has no real OpenGL support and therefore needs software rendering. Explained in the docs.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          C 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            Because your VM has no real OpenGL support and therefore needs software rendering. Explained in the docs.

            C Offline
            C Offline
            cen1
            wrote on last edited by
            #5

            @Christian-Ehrlicher true for my VM but initial bug report came from 2 people using their desktop machines which they also use for gaming, including opengl games. So I am fairly certain they have opengl acceleration present.

            1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Just try it out

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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