Results 1 to 11 of 11

Thread: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int, vo

  1. #1
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int, vo

    hello,
    i have a probleme in the make of my qt project with C++,there is an error in the QT4 code that i dont have any idea cause is not me who develop this,so how can i do? what is the origine of this error
    thx for your help dear QT developers ,i paste you the error :

    <code>
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Iinc -IQtCore -IQtGui -I. -I. -o moc_qbuffer.o moc_qbuffer.cpp
    moc_qbuffer.cpp: In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int, void**)»:
    moc_qbuffer.cpp:65: erreur: invalid use of incomplete type «struct QBufferPrivate»
    QtCore/qbuffer.h:57: erreur: forward declaration of «struct QBufferPrivate»
    make: *** [moc_qbuffer.o] Erreur 1

    </code>

  2. #2
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    i tried to install QT another time but no way to resolve the problem !
    i develop with linuw Ubuntu and i compile as you see with gcc
    Last edited by chochatown; 27th May 2009 at 15:58.

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    this error appears when you compile your own code or Qt sources? If your own, can you investigate what part of your own code causes error?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  4. #4
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    this error comes when i compile my code but my code have not the error the error is in a line of the moc_qbuffer.cpp of Qt libraries i tried to find this close but i cant, exactly in the

    function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int, void**)»:

    that sure my code call it from sequence of calls

    is it because linux?i installed a new QT4 from installer but no way.


    this the error again:

    root@lassoued-laptop:/home/lassoued/ogr2gui-0.5# make
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Iinc -IQtCore -IQtGui -I. -I. -o moc_qbuffer.o moc_qbuffer.cpp
    moc_qbuffer.cpp: In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int, void**)»:
    moc_qbuffer.cpp:65: erreur: invalid use of incomplete type «struct QBufferPrivate»
    QtCore/qbuffer.h:57: erreur: forward declaration of «struct QBufferPrivate»
    make: *** [moc_qbuffer.o] Erreur 1

  5. #5
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    sur des forum j'ai vu que c'est un qmake que je dois fair,mais ou comment ...!!

    est-ce la solution?

  6. #6
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    can you show your code?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  7. #7
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    now i changed to QT Creator is better i wish that's my code cause i have ew error here :

    /home/lassoued/design/FormUI/Frm.cpp:5: erreur: invalid use of incomplete type «struct Ui::Frm»


    that's the code:

    Qt Code:
    1. #include "Frm.h"
    2. #include "ui_Frm.h"
    3.  
    4. Frm::Frm(QWidget *parent)
    5. : QMainWindow(parent), ui(new Ui::Frm)
    6. {
    7. ui->setupUi(this);
    8. }
    9.  
    10. Frm::~Frm()
    11. {
    12. delete ui;
    13. }
    To copy to clipboard, switch view to plain text mode 






    Qt Code:
    1. #ifndef FRM_H
    2. #define FRM_H
    3.  
    4. #include <QtGui/QMainWindow>
    5.  
    6. namespace Ui
    7. {
    8. class Frm;
    9. }
    10.  
    11. class Frm : public QMainWindow
    12. {
    13. Q_OBJECT
    14.  
    15. public:
    16. Frm(QWidget *parent = 0);
    17. ~Frm();
    18.  
    19. private:
    20. Ui::Frm *ui;
    21. };
    22.  
    23. #endif // FRM_H
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 28th May 2009 at 21:58. Reason: missing [code] tags

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    To me it seems you took some files from Qt sources, copied them to your project and tried to compile. This won't work, don't even try it - you have to link to Qt as a whole, you can't extract one or two classes from it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    May 2009
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    yes that what i would use but how i can link Qt?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    This is not a forum that teaches you how to be a software developer. You should know how to use libraries in your applications.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: error In member function «virtual int QBuffer::qt_metacall(QMetaObject::Call, int

    why do you want to copy Qt sources into your app sources?? Can't you just use the Qt classes from compiled library like any other Qt user?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Regading Driver to connect Postgresql Database
    By dummystories in forum Installation and Deployment
    Replies: 38
    Last Post: 12th March 2009, 07:19
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.