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. Resource editor won't allow me to add files with relative paths
Forum Updated to NodeBB v4.3 + New Features

Resource editor won't allow me to add files with relative paths

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 363 Views 2 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    2d3819df-ca2e-42cd-af9f-bb892bd686c2-image.png

    I had previously built my resources.qrc by hand in the ui directory of my project.

    The resource compiler is quite happy with lines in the rc file that look like:

        <qresource prefix="/stacking">
            <file alias="normalmode.bmp">../res/normalmode.bmp</file>
            <file alias="intersectionmode.bmp">../res/intersectionmode.bmp</file>
            <file alias="mosaicmode.bmp">../res/mosaicmode.bmp</file>
            <file alias="custommode.bmp">../res/custommode.bmp</file>
            <file alias="4corners.png">../res/4Corners.png</file>
            <file alias="DarkColour-16.png">../res/DarkColour-16.png</file>
            <file alias="DarkColour-32.png">../res/DarkColour-32.png</file>
    
    

    The resource editor OTOH refuses to let me add the files from there insisting that they be in a sub directory of the folder containing the qrc file !!!

    That strikes me as a very odd!

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

      Hi,

      I might be wrong but it could be that this is currently working because you use aliases.

      Can you try to use your resources with the aliases removed ?

      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
      0

      • Login

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