Import Qt Quick Components
-
Hey there,
I was trying to import some Qt Quick components.
But I got some errors while copying and compiling with command promptHere you see the output.
Can you tell me whats going wrong?
(I'm really a newbe)@C:\Users\uidu3616\Desktop\qt-components-desktop-master>mingw32-make
cd components\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qma
ke.exe C:\Users\uidu3616\Desktop\qt-components-desktop-master\components\compone
nts.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Users/uidu3616/Desktop/qt-components-des
ktop-master/components'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'C:/Users/uidu3616/Desktop/qt-components-desk
top-master/components'
cd src\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe
C:\Users\uidu3616\Desktop\qt-components-desktop-master\src\src.pro -o Makefile )
&& mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Users/uidu3616/Desktop/qt-components-des
ktop-master/src'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory 'C:/Users/uidu3616/Desktop/qt-components-des
ktop-master/src'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -m
threads -DUNICODE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DECLARATIVE_LIB -DQT_WIDGETS_LI
B -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"..........\Qt\Qt5.1.0\5.
1.0\mingw48_32\include" -I"..........\Qt\Qt5.1.0\5.1.0\mingw48_32\include\Qt
Declarative" -I"..........\Qt\Qt5.1.0\5.1.0\mingw48_32\include\QtWidgets" -I
"..........\Qt\Qt5.1.0\5.1.0\mingw48_32\include\QtScript" -I"..........
Qt\Qt5.1.0\5.1.0\mingw48_32\include\QtGui" -I"..........\Qt\Qt5.1.0\5.1.0\mi
ngw48_32\include\QtCore" -I"moc" -I"..........\Qt\Qt5.1.0\5.1.0\mingw48_32\m
kspecs\win32-g++" -o obj\qtmenu.o qtmenu.cpp
In file included from qtmenu.cpp:27:0:
qtmenu.h:30:25: schwerwiegender Fehler: QtGui/qmenu.h: No such file or directoryKompilierung beendet.
Makefile.Release:3866: recipe for target 'obj/qtmenu.o' failed
mingw32-make[2]: *** [obj/qtmenu.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Users/uidu3616/Desktop/qt-components-desk
top-master/src'
Makefile:34: recipe for target 'release' failed
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/uidu3616/Desktop/qt-components-desk
top-master/src'
Makefile:65: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2@ -
I think the problem is the qmenu.h.
Can you tell me why?The incorrect compiling causes an error while using the components in Qt and running the application ("module "QtDesktop" plugin "styleplugin" not found")
-
thanks for your support..... :/
-
Why are you compiling the old Desktop Components project? It's already integrated as part of Qt 5.1 and the old repo will not compile for any Qt version.
Just get yourself Qt 5.1 and use this in your QML:
@
import QtQuick 2.1
import QtQuick.Controls 1.0
@ -
ah ok very nice thank you