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. What is the benefit of using multiple prefixes in qml.qrc file?
Forum Updated to NodeBB v4.3 + New Features

What is the benefit of using multiple prefixes in qml.qrc file?

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

    I have a brand new QTQuick project, but changed the directories to this:

    /assets/i18n/en_US.ts
    /build
    /src
     | cpp/main.cpp
     | qml/main.qml
    /Program.pro
    /qml.qrc
    

    In steps:

    1. When adding the prefix /src/qml/ to the qml.qrc file like this

    1.png

    1. And then add a existing file to the qml.qrc file like this

    3.png

    1. QT Creator then does this:

    4.png

    Now is my question, why in the hell would I add a prefix, iif any files added to that prefix also has to contain the prefix. This makes not sense ?

    JoeCFDJ 1 Reply Last reply
    1
    • N niquedegraaff

      I have a brand new QTQuick project, but changed the directories to this:

      /assets/i18n/en_US.ts
      /build
      /src
       | cpp/main.cpp
       | qml/main.qml
      /Program.pro
      /qml.qrc
      

      In steps:

      1. When adding the prefix /src/qml/ to the qml.qrc file like this

      1.png

      1. And then add a existing file to the qml.qrc file like this

      3.png

      1. QT Creator then does this:

      4.png

      Now is my question, why in the hell would I add a prefix, iif any files added to that prefix also has to contain the prefix. This makes not sense ?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @niquedegraaff can you open your qml.qrc file in an text editor and take a look at it?
      And try with and without prefix.

      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