Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT5 -> QT6: ASSERT: "!d->offscreenWindow->handle()"
Forum Updated to NodeBB v4.3 + New Features

QT5 -> QT6: ASSERT: "!d->offscreenWindow->handle()"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 234 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.
  • L Offline
    L Offline
    Lukasz4282
    wrote on last edited by
    #1

    Hey guys, i'm making this post regarding the migration of a certain MS Teams competitor to QT6.
    After updating the QtQuick.Controls import from 1.4 to 2.15, I get a runtime library error as follows:

    ASSERT: "!d->offscreenWindow->handle()" in file J:\qt_build\workspace\src\qt\qt-6.4.0\qtdeclarative\src\quickwidgets\qquickwidget.cpp, line 1163
    Debug Error!

    Program: ...spark\build_vscode\output\bin\Debug\dependencies\Qt6Cored.dll
    Module: 6.4.0
    File: J:\qt_build\workspace\src\qt\qt-6.4.0\qtdeclarative\src\quickwidgets\qquickwidget.cpp
    Line: 1163

    ASSERT: "!d->offscreenWindow->handle()" in file J:\qt_build\workspace\src\qt\qt-6.4.0\qtdeclarative\src\quickwidgets\qquickwidget.cpp, line 1163

    (Press Retry to debug the application)

    This is a Windows platform specific issue. Ignoring the error renders the application fully functional, however the error still needs to be fixed. The issue is with QQuickWidget, it has an internal window that shouldn't be mapped to a real window, however, still gets added. I was wondering if anyone else had this occur before and could give pointers.

    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