Custom widget plugin installation[SOLVED]
-
wrote on 15 Oct 2013, 05:11 last edited by
mainwindow.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void * __thiscall LED::qt_metacast(char const *)" (?qt_metacast@LED@@UAEPAXPBD@Z)
THIS IS THE ERROR IT IS SHOWING WHILE BUILDING NOW I INCLUDED THE PATH IN THE .PRO FILE
-
What is LED ?
Please, don't write all in upper case, it's considered as shouting and a bit rude.
-
wrote on 15 Oct 2013, 08:34 last edited by
sorry
it was by mistake and LED is my class name -
Can you post your pro file ?
-
wrote on 16 Oct 2013, 07:15 last edited by
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = tester
TEMPLATE = app
#LIBS +=-L"C:\Qt\Qt5.0.1\Tools\QtCreator\bin\tester" -l"customwidgetplugin"
SOURCES += main.cpp
mainwindow.cppHEADERS += mainwindow.h
FORMS += mainwindow.ui
INCLUDEPATH += "C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\designer\customwidgetplugin"LIBS += $$(QTDIR)\plugins\designer\customwidgetplugin.lib
this is my pro file though it has now a different widget but the same error occurs. i have experimentes a lot with the library path.
the linker error when the library path is added dissapears and the program starts but terminates unexpectedly instantly without any specific error message ang if the library path is not given the linker error arises
-
Before going further, follow the suggestion Tobias Hunger made on your other plugin related post.
-
wrote on 19 Oct 2013, 17:20 last edited by
thank you for all your help and patience.
the plugin is now working -
wrote on 19 Oct 2013, 17:21 last edited by
and i would just like to ask if you could also help me with my other question you looked upon the custom menubar kind of widget and did you have any ideas
-
I've responded, in between, you can mark this thread as solved since it's working so other forum users may know a solution has been found. Adding a link to the post where you had the helping answer would also be a plus.
-
wrote on 21 Oct 2013, 05:39 last edited by
I am adding the link to the post that helped me solve the error and i would also like to add that one more conmon mistake that was not written in the post could be the mixing of debug and release files we need the the release dll to add in the designer and the debug dll to set as the library path in the pro file so both dll are required"Your text to link here...":http://qt-project.org/forums/viewthread/33712/
19/19