Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Import Qt Quick Components
Qt 6.11 is out! See what's new in the release blog

Import Qt Quick Components

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hey there,

    I was trying to import some Qt Quick components.
    But I got some errors while copying and compiling with command prompt

    Here 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 directory

    Kompilierung 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@

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #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")

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        thanks for your support..... :/

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          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
          @

          (Z(:^

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            ah ok very nice thank you

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved