GLwidget plugin causes Qt Creator to crash
-
I'm using Qt Creator 2.2.1 under Redhat
I created a simple test designer plugin. Simply subclassses a widget. I copy this to the plugins/designer directory and it works
I try again. This time subclassing GLWidget. Qt Creator crashes as soon as I open a .ui file.
I get the error message:
Cannot mix incompatible Qt library (version 0x40703) with this library (version 0x40704)
Aborted (core dumped)Clearly this is something to do with Qt Creator using 4.7.4 libraries and my having qt 4.7.3 installed but is there a way to get these to work nicely together?
test.h
@#ifndef TEST_H
#define TEST_H#include <QtGui/QWidget>
#include <QtOpenGL/QtOpenGL>class Test : public QGLWidget
{
Q_OBJECTpublic:
Test(QWidget *parent = 0);
};
#endif
@test.cpp
@#include "test.h"Test::Test(QWidget *parent) :
QGLWidget(parent)
{}
@ -
Well, this works. It's rather unsatisfying though, since this means everyone on the team needs an alternative build rather than using the standard binary provided on the qt download page. Also seems to cause a crash when loading other plugins, presumably because they're compiled with 4.7.4.