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. Issue with Custom Component in Qt Creator (Works in Qt Design Studio)
Forum Updated to NodeBB v4.3 + New Features

Issue with Custom Component in Qt Creator (Works in Qt Design Studio)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 167 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.
  • W Offline
    W Offline
    Weber01
    wrote on last edited by
    #1

    Hi everyone,

    I’m working on a project using Qt Design Studio and created a GUI with some custom components. When I run the project directly from Qt Design Studio, everything works fine. However, when I open the same project in Qt Creator, I get the following error:

    module "Velocita" is not installed
    

    Where "Velocita" is a custom component I created in Design Studio.

    I tried following some advice I found online and added this line to the C++ code:

    engine.load(":content/Velocita.ui.qml");
    

    But it didn’t work, it says:

    QQmlApplicationEngine failed to load component
    

    Additionally, I’ve noticed that several other imports also have issues when the project is opened in Qt Creator (as you can see in the attached images).

    Has anyone encountered this type of problem before? Is it common for there to be differences between running in Qt Design Studio and Qt Creator? Any suggestions on how I could resolve this? I might be missing a step to make the custom components available in Qt Creator as well.

    Thanks in advance for your help!

    54ab8004-ec3f-4e07-b6cb-c8f057435e61-immagine.png
    4784ef13-9657-429c-9c32-6a450979c776-immagine.png
    a7f6ac21-9025-4e47-85b6-525e15e35614-immagine.png

    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