Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT creator can't seem to find the module plugin for a separate directory
Forum Updated to NodeBB v4.3 + New Features

QT creator can't seem to find the module plugin for a separate directory

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 114 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.
  • P Offline
    P Offline
    Pyrus
    wrote on last edited by Pyrus
    #1

    Hello

    I'm relatively new to QT and I've been struggling with keeping the files I use for creating my project organized.
    Currently I'm trying to store the backend c++ files of my project into a separate folder within the project as can be seen in the picture.
    77e10b01-a32c-4e61-8888-f031993f33b9-image.png

    However when trying to access the library from the Screen01.ui.qml file, I receive the following error log:

    0f096b59-9147-4c81-ab5a-57465f2524b3-image.png

    The backend c++ files have the QML_ELEMENT property and it works if I store them in the same content folder. So I'm really stumped as to why it doesn't work for when I store it into a separate folder. I surmise that I have to alter the CMakeLists.txt, but I really have no clue on how to approach this.

    Also this is my first time posting on this forum. If there is anything I should do to change the way I pose my question on this forum, please feel free to tell me.
    I hope someone can aid me on this issue.

    Kind regards
    Pyrus

    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