Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6869245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:32:03+00:00 2026-05-27T03:32:03+00:00

I have compiled Qt Statically and I have used it to compile my application.

  • 0

I have compiled Qt Statically and I have used it to compile my application. My exe runs anywhere but it only shows something if there is a qml/Raker/images folder in the same directory as my exe but I want the image to be included in my exe. In qml I access the image through “images/layer_0.png”(This is only one out of 20). I have read something about a resource file but I can’t completely understand it. I’m sure how to do this If any of you could just help. I also want to know if Qt Creator has some built in way of doing this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:32:03+00:00Added an answer on May 27, 2026 at 3:32 am

    Yes, this can be done and it is built into Qt. The steps are as follows:

    1. In Qt Creator, right click on your project, choose “add new”, select Qt Resource File chose a name and location
    2. Double click on file to open it in the resource editor
    3. Click on Add->Add Prefix to add the prefix to the file
    4. Click on Add->Add File to add each of your image files
    5. To access files using the QResources Scheme, prefix them with “:/” as in “:/images/icon.png”

    Alternatively to quickly “convert” all relative image paths to be accessed as resources, use the QResources scheme to set your view source in qml:
    view.setSource(QUrl("qrc:/main.qml"));

    For more information have a look at:

    • How to use Resource Editor with Qt Creator
    • managing resource files with the qt resource system
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old c++ project compiled with VC6. I need to statically link
I have compiled a .NET application using Any CPU option. This .NET application uses
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):
I am trying to install an application onto my device..I have compiled the application
I have a compiled swf file and a I can't edit it , but
I have a large body of code, compiled with /MT (i.e. expecting to statically
I have used event.h in on of my project but the server it has
We have large C++ project that we used to compile with the /MP switch
Is there any statically-typed, strongly-type compiled language that provides a functionality to iterate over
Does it only exist in statically typed languages? And is it only there when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.