I wrote in file OkragVector.h:
But now I got lots of errors:#ifndef OkragVector_H
#define OkragVector_H
#include <QMetaType>
#include "Okrag.h"
typedef QVector<Okrag> OkragVector;
qRegisterMetaType<OkragVector>("OkragVector");
#endif
When I delete QVector<Okrag> from arguments of slot/signal it's works and I get QMessageBox.c:\qt\projekty\graphicitem\OkragVector.h(8) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\qt\projekty\graphicitem\OkragVector.h(8) : error C2365: 'qRegisterMetaType' : redefinition; previous definition was 'function'
c:\qt\projekty\graphicitem\OkragVector.h(8) : error C2440: 'initializing' : cannot convert from 'const char [12]' to 'int'
There is no context in which this conversion is possible
Edit:
Only QVector gives me:
c:\qt\projekty\graphicitem\RysujacyKolkaWidget.h(4 0) : error C2955: 'QVector' : use of class template requires template argument list
c:\msvc\vc\qt\include\qtcore\../../src/corelib/tools/qvector.h(96) : see declaration of 'QVector'
Bookmarks