Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3759

RCC: If alias set on resource the full path can no longer be used.

    XMLWordPrintable

Details

    Description

      Using the Visual studio integration:

      Add a Prefix to the .qrc file using the Resource editor. For example /MyPrefix

      Then add an image file (myImage.png) to this prefix. The file should be located in a subfolder for example Resources.

      You can then access this file in your code by:

      ":/MyPrefix/Resources/myImage.png"

      Then add an alias for this image called myImage.png

      Now you can only access this resource by:

      ":/MyPrefix/myImage.png"

      And the full path can no longer be used.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes