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. Missing prefix in QML

Missing prefix in QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 987 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.
  • G Offline
    G Offline
    gabor53
    wrote on last edited by
    #1

    Hi,
    I created an empty Qt Quick application using File > New File or Project > Qt Quick Application - Empty.
    I wanted to create a prefix so I right clicked on Qml.qrc and chose Add prefix. In the subsequent dialog window I entered /files in the prefix field and I left the language field empty.
    After clicking OK nothing happened (no resources showed and no error message either).
    Please help me figure out what is wrong. Thank you.

    1 Reply Last reply
    0
    • KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by KillerSmath
      #2

      Hi there, welcome to Qt Forum.

      Have you tried to insert the prefix by resource editor ?

      0_1531037536885_openwith.png

      Or directly writting in plain text using QRC sintaxe ?

      <RCC>
          <qresource prefix="/">
              <file>main.qml</file>
          </qresource>
          <qresource prefix="/files">
              <file>file1.qml</file>
              <file>file2.qml</file>
              <file>file3.qml</file>
          </qresource>
      </RCC>
      

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      G 1 Reply Last reply
      4
      • KillerSmathK KillerSmath

        Hi there, welcome to Qt Forum.

        Have you tried to insert the prefix by resource editor ?

        0_1531037536885_openwith.png

        Or directly writting in plain text using QRC sintaxe ?

        <RCC>
            <qresource prefix="/">
                <file>main.qml</file>
            </qresource>
            <qresource prefix="/files">
                <file>file1.qml</file>
                <file>file2.qml</file>
                <file>file3.qml</file>
            </qresource>
        </RCC>
        
        G Offline
        G Offline
        gabor53
        wrote on last edited by
        #3

        @KillerSmath
        Thank you. This worked.

        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