Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resource in parent directory
Forum Update on Monday, May 27th 2025

Resource in parent directory

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 798 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.
  • M Offline
    M Offline
    MartinD
    wrote on 25 Oct 2018, 08:25 last edited by
    #1

    Hi,
    my project has .qrc file which includes one file from parent directory (its relative path to project and qrc file is ../file.txt). It seems that I will not be able to acccess this file in my app. Is there any solution to this? (I can't move the files, nor create .qrc file in parent directory).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 25 Oct 2018, 08:33 last edited by sierdzio
      #2

      Use alias to create a new path for this file.

      See the docs (third second snippet): Qt Resource System

      (Z(:^

      1 Reply Last reply
      1

      1/2

      25 Oct 2018, 08:25

      • Login

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