我创建了QQuickView并捕获了段错误。 我的回溯:
0 QSGRenderLoop::useConsistentTiming qsgrenderloop.cpp 131 0x7ffff763c91a
1 QSGRenderLoop::instance qsgrenderloop.cpp 147 0x7ffff763ca78
2 QQuickWindowPrivate::init qquickwindow.cpp 416 0x7ffff766d2ff
3 QQuickWindow::QQuickWindow qquickwindow.cpp 991 0x7ffff766f822
4 QQuickView::QQuickView qquickview.cpp 166 0x7ffff7742bd0
5 MainWindow::MainWindow mainwindow.cpp 6 0x4019ab
6 main main.cpp 8 0x401854
QSGRenderLoop :: useConsistentTiming在第一行崩溃:
bool bufferQueuing = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::BufferQueueingOpenGL);
我认为是因为platformIntegration
是nullptr
...但为什么?