Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

ASSERT failed in windows 8 QWindowsMsaaAccessible::childPointer

$
0
0
I Built QT for Windows 8 from source and when i create a simple QGraphicsView with a single button the application fails to run with an assertion failure with the following stack trace Qt5Cored.dll!qt_message_fatal(QtMsgType __formal, const QMessageLogContext & context, const QString & message)  Line 861    C++ Qt5Cored.dll!QMessageLogger::fatal(const char * msg, ...)  Line 356 + 0xf bytes C++ Qt5Cored.dll!qt_assert_x(const char * where, const char * what, const char * file, int line)  Line 1981 + 0x32 bytes    C++ qtaccessiblewidgetsd.dll!QList<QWidget *>::at(int i)  Line 454 + 0x45 bytes C++ qtaccessiblewidgetsd.dll!QAccessibleAbstractScrollArea::child(int index)  Line 385 + 0x17 bytes C++ qwindowsd.dll!QWindowsMsaaAccessible::childPointer(tagVARIANT varID)  Line 153 + 0x1a bytes C++ qwindowsd.dll!QWindowsMsaaAccessible::accLocation(long * pxLeft, long * pyTop, long * pcxWidth, long * pcyHeight, tagVARIANT varID)  Line 581   C++ However on windows 7 everything seems to be working fine. This is the code i tried #include <QtWidgets/QApplication> #include <QGraphicsScene> #include <QGraphicsView> #include <QGLWidget> #include <QPushButton>     int main(int argc, char *argv[]) {     QApplication a(argc, argv);     QGraphicsScene scene;     QGraphicsView  view;     QPushButton* button = new QPushButton("Click Me!");     scene.addWidget(button);     view.resize(1024,768);     view.setScene(&scene);     view.setSceneRect(0,0,1024,768);     view.show();         return a.exec(); } Any ideas on what is causing this issue?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>