Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtQml: No such file or directory
Forum Update on Monday, May 27th 2025

QtQml: No such file or directory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 1.4k Views
  • 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.
  • F Offline
    F Offline
    fireyyouth
    wrote on last edited by
    #1

    I am using Ubuntu 16.04. I got Qt from APT. I wrote a cpp file that includes <QtQml>, it turned out that g++ can't find this file, while other files like QtGui, QtCore can be found.

    A 1 Reply Last reply
    0
    • F fireyyouth

      I am using Ubuntu 16.04. I got Qt from APT. I wrote a cpp file that includes <QtQml>, it turned out that g++ can't find this file, while other files like QtGui, QtCore can be found.

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @fireyyouth Can you check your Qt install's directory with something like find /path/to/qt -iname "*qtqml*" and see if it find it? It's possible the package from apt did not include QML although that seems unlikely.

      You can of course install multiple versions of Qt so you could just install one with the installer (or build one yourself) and that will definitely have QML in it.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Did you add the corresponding QT += statements in your .pro file ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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