Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. GLwidget plugin causes Qt Creator to crash

GLwidget plugin causes Qt Creator to crash

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.3k Views
  • 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 Offline
    N Offline
    nslu
    wrote on last edited by
    #1

    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
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      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
      0
      • N Offline
        N Offline
        nslu
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved