Originally Posted by
Lykurg
in fancytabwidget.h: only Qt dependencies.
in fancytabwidget.cpp: only utils/stylehelper.h (no dependencies except Qt) and utils/styledbar.h. And here also no further dependencies. So what is the problem?
Simple include these sex files in your project and use them. They take normal QWidget's as parameters.
What you have to do - if you like - is to remove the namespace.
I did what you said, got the following errors:
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:103: undefined reference to `_imp___ZN5Utils11StyleHelper15sidebarFontSizeEv'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:280: undefined reference to `_imp___ZN5Utils11StyleHelper15sidebarFontSizeEv'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:287: undefined reference to `_imp___ZN5Utils11StyleHelper14panelTextColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:289: undefined reference to `_imp___ZN5Utils11StyleHelper14panelTextColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:312: undefined reference to `_imp___ZN5Utils11StyleHelper18drawIconWithShadowERK5QIconRK5QRectP8QPainterNS1_4ModeEiRK6QColorRK6QPoint'
debug/fancytabwidget.o: In function `FancyTabWidget':
C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:389: undefined reference to `_imp___ZN5Utils9StyledBarC1EP7QWidget'
C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:389: undefined reference to `_imp___ZN5Utils9StyledBarC1EP7QWidget'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:465: undefined reference to `_imp___ZN5Utils11StyleHelper16verticalGradientEP8QPainterRK5QRectS5_b'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:466: undefined reference to `_imp___ZN5Utils11StyleHelper11borderColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/utils/stylehelper.h:64: undefined reference to `_imp___ZN5Utils11StyleHelper20m_requestedBaseColorE'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:368: undefined reference to `_imp___ZN5Utils11StyleHelper12setBaseColorERK6QColor'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\Test.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:103: undefined reference to `_imp___ZN5Utils11StyleHelper15sidebarFontSizeEv'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:280: undefined reference to `_imp___ZN5Utils11StyleHelper15sidebarFontSizeEv'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:287: undefined reference to `_imp___ZN5Utils11StyleHelper14panelTextColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:289: undefined reference to `_imp___ZN5Utils11StyleHelper14panelTextColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:312: undefined reference to `_imp___ZN5Utils11StyleHelper18drawIconWithShadowERK5QIconRK5QRectP8QPainterNS1_4ModeEiRK6QColorRK6QPoint'
debug/fancytabwidget.o: In function `FancyTabWidget':
C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:389: undefined reference to `_imp___ZN5Utils9StyledBarC1EP7QWidget'
C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:389: undefined reference to `_imp___ZN5Utils9StyledBarC1EP7QWidget'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:465: undefined reference to `_imp___ZN5Utils11StyleHelper16verticalGradientEP8QPainterRK5QRectS5_b'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:466: undefined reference to `_imp___ZN5Utils11StyleHelper11borderColorEb'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/utils/stylehelper.h:64: undefined reference to `_imp___ZN5Utils11StyleHelper20m_requestedBaseColorE'
debug/fancytabwidget.o:C:\Users\[MyComp]\Desktop\MainProject\Test\Test/fancytabwidget.cpp:368: undefined reference to `_imp___ZN5Utils11StyleHelper12setBaseColorERK6QColor'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\Test.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
To copy to clipboard, switch view to plain text mode
Added after 23 minutes:
Originally Posted by
Lykurg
in fancytabwidget.h: only Qt dependencies.
in fancytabwidget.cpp: only utils/stylehelper.h (no dependencies except Qt) and utils/styledbar.h. And here also no further dependencies. So what is the problem?
Simple include these sex files in your project and use them. They take normal QWidget's as parameters.
What you have to do - if you like - is to remove the namespace.
Check out this https://rapidshare.com/files/2075171030/Test.zip
Bookmarks