Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.1
-
None
-
0c33a823c560bdf18a513ae460eea4d7bdf9e115
Description
backtrace:
#0 0x00007ffff778ed28 in QScopedPointer<QPlatformScreenPrivate, QScopedPointerDeleter<QPlatformScreenPrivate> >::data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135 #1 0x00007ffff778e6ed in qGetPtrHelper<QScopedPointer<QPlatformScreenPrivate> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1016 #2 0x00007ffff778e94c in QPlatformScreen::d_func (this=0x0) at kernel/qplatformscreen.h:74 #3 0x00007ffff778db62 in QPlatformScreen::screen (this=0x0) at kernel/qplatformscreen.cpp:133 #4 0x00007ffff7e99632 in QXcbWindow::create (this=0x63dd90) at qxcbwindow.cpp:365 #5 0x00007ffff7e85099 in QXcbIntegration::createPlatformWindow (this=0x607b50, window=0x7fffffffe4f0) at qxcbintegration.cpp:201 #6 0x00007ffff77ac09a in QWindowPrivate::create (this=0x63dba0, recursive=false) at kernel/qwindow.cpp:395 #7 0x00007ffff77ac66d in QWindow::create (this=0x7fffffffe4f0) at kernel/qwindow.cpp:555 #8 0x00007ffff77ac42a in QWindow::setVisible (this=0x7fffffffe4f0, visible=true) at kernel/qwindow.cpp:484 #9 0x00007ffff77af23c in QWindow::showNormal (this=0x7fffffffe4f0) at kernel/qwindow.cpp:1892 #10 0x00007ffff77af149 in QWindow::show (this=0x7fffffffe4f0) at kernel/qwindow.cpp:1820 #11 0x0000000000400e57 in main (argc=2, argv=0x7fffffffe618) at main.cpp:13
To reproduce:
#include <QGuiApplication> #include <QWindow> int main(int argc, char **argv) { QGuiApplication app(argc, argv); bool ok; quint32 foreignParentId = app.arguments().last().toUInt(&ok, 0); QScopedPointer<QWindow> foreignParent(QWindow::fromWinId(foreignParentId)); QWindow view(foreignParent.data()); view.show(); return app.exec(); }