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. Black main window after update to 5.15 to 6.8
Forum Updated to NodeBB v4.3 + New Features

Black main window after update to 5.15 to 6.8

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 235 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.
  • danoD Offline
    danoD Offline
    dano
    wrote on last edited by
    #1

    Howdy folks,

    We recently updated our application from Qt 5.15.2 to 6.8.0. After tackling some initial CMake/VTK/ITK build issues, I got it up and running again. Right now, everything looks and works perfectly normal on my dev PC, but when we try to run the application on other (test) systems the main window of the UI is fully 'black':

    back_in_black-01.jpg

    back_in_black-02.jpg

    I know the application is up and running, because the tooltips, drop down menu's and dialogs show as they should. I already tried copying all dll's from Qt 6.8.0's bin dir to the app dir on our test PC, but still no worky... Dependeny Walker hangs if I try it, so that doesn't help either.

    Has anyone here experienced similar issues or have any ideas on how to solve this issue?

    Best regards ever,
    Daan

    1 Reply Last reply
    1
    • danoD Offline
      danoD Offline
      dano
      wrote on last edited by
      #2

      I was able to fix it (at least on the systems we use for testing) by setting the QVTKOpenGLNativeWidget::defaultFormat() format profile to QSurfaceFormat::CoreProfile instead of QSurfaceFormat::CompatibilityProfile. This seems a bit counter intuitive, since it appears to be more compatible, but I'm happy nevertheless...

      auto format = QVTKOpenGLNativeWidget::defaultFormat();
      format.setProfile(QSurfaceFormat::CoreProfile);
      QSurfaceFormat::setDefaultFormat(format);

      1 Reply Last reply
      2

      • Login

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