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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:52:21+00:00 2026-06-11T00:52:21+00:00

Each time I compile my Qt project after modifying my qss stylesheet file, the

  • 0

Each time I compile my Qt project after modifying my qss stylesheet file, the modifications aren’t taken into account, unless I rebuild everything.

Any idea on a workaround for this, so that I don’t have to wait 5 minutes each time I change my qss ?

Notes: I use Qt 4.8, and my stylsheet is declared in a resource file (qrc).

EDIT: As suggested by Luca Carlon, when a qss is reference in the project through a .qrc file, the changes in the qss don’t affect the qrc, and the compiler ignores it. To avoid that, I added a Custom Build Step to my project:

  • before the qmake step!
  • calls a .bat file without any argument
  • the .bat contains the real command copy /b files.qrc +,,
  • 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-06-11T00:52:22+00:00Added an answer on June 11, 2026 at 12:52 am

    I experienced the same issue with QML files inside Qt resources files. I’ve been told by the Qt guys that this happens sometimes: I think this might be it.

    To work around this issue I created a custom step in the build process: go to the project settings, under Build Steps select Add Build Step -> Custom Build Step. Here add as a Command a touch of the qrc file and position this step as the first step. If you’re working under Windows use an equivalent of the touch command.

    This will recompile that qrc file every time, but at least it is automatic. I couldn’t find any other way at the time. If you stop working on that file, just disable the step.

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

Sidebar

Related Questions

I'm getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389
I'm getting different errors each time I compile my C project. There are 3
Each time I make changes to XML file and press run button, It generates
I have one windows form file that each time I open it in Visual
For the last couple of days, each time I compile my solution (MVC 3
Each time I use Merge() I have the following: 'Cannot implicitly convert type 'void'
Each time I add in the correct code, it gives me the same error
Each time my webpage is loaded it runs a routine in the page_load event
Each time I click on the map a new marker is placed on the
Each time I click the Run as button, I get the following message. The

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.