Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    GLwidget plugin causes Qt Creator to crash

    Tools
    2
    3
    2132
    Loading More Posts
    • 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.
    • N
      nslu last edited by

      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_OBJECT

      public:
      Test(QWidget *parent = 0);
      };
      #endif
      @

      test.cpp
      @#include "test.h"

      Test::Test(QWidget *parent) :
      QGLWidget(parent)
      {

      }
      @

      1 Reply Last reply Reply Quote 0
      • L
        loladiro last edited by

        Qt Creator/Designer plugins need to be built with the same Qt version. You should probably rebuild Qt Creator from source.

        1 Reply Last reply Reply Quote 0
        • N
          nslu last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post