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 3334364
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:53:49+00:00 2026-05-17T23:53:49+00:00

In my last question ( Qt/C++: Icons not showing up when program is run

  • 0

In my last question (Qt/C++: Icons not showing up when program is run) I asked how to get an icon to show up on a toolbar and was told I needed a Qt Resource, which I added and that fixed my problem, the icon did show up on the toolbar.

Now I’m trying to set the title icon of a window, using the same resource file, and it shows up fine in the Qt preview viewer but blank in the actual program. I am using a MainWindow which has an MDIArea and the children are MainWindows as well; neither the parent MDI nor child MDI windows icons will show properly. On the parent, I see the regular “Windows Application icon” and on the child, the icon is completely blank.

How can I solve 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-17T23:53:49+00:00Added an answer on May 17, 2026 at 11:53 pm

    You will have to go through a standard resource file for windows. (That is, a .rc)

    The process (as described in the documentation) is:

    Store the ICO file in your application’s source code directory, for
    example, with the name myappico.ico. Then, create a text file called,
    say, myapp.rc in which you put a single line of text:

    IDI_ICON1 ICON DISCARDABLE “myappico.ico”

    Finally, assuming you are using qmake to generate your makefiles, add this line to your myapp.pro

    file: RC_FILE = myapp.rc

    Regenerate your makefile and your application. The .exe file will now be represented with your icon in Explorer.

    In the Visual Studio case you’re simply able to add a resource to your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From my last question , I now know how to get access to the
This question comes after solving my last question , I'd like to get some
My last question helped me get data from a form into an array. The
The last question I asked concerned how to bin data by x co-ordinate. The
My last question asked for running once without the use of booleans. I decided
My last question wasn't explained very well. What I'm trying to do here is
My last question was somewhat narrower than this one. I am interested to know
My last question was about getting the string representation of an object serialized to
After having my last question answered , I have never see the preventDefault(); function
Let me rephrase my last question, what PHP library or framework can I use

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.