Questions tagged [rcc]

The rcc tool is part of the Qt framework and is used to embed resources into a Qt application during the build process.

31 questions
13
votes
3 answers

Creating a resource file to use it in Qt Designer

I want to add a background image to a widget and thus I need a resource file but I am not able to create it in Qt Designer. Here is what I did: From the widget I go to the resources browser and click on the "add new file" button then a new window…
nprak
  • 343
  • 4
  • 6
  • 18
7
votes
2 answers

Customize pyuic's resource import statement?

When I use this command on windows: python -m PyQt4.uic.pyuic user_interface.ui -o user_interface.py After that, I add a resource: pyrcc4.exe -py3 images.qrc -o images.py And I end up with two beautiful files, user_interface.py, and images.py. The…
mesafria
  • 311
  • 2
  • 10
6
votes
2 answers

Opening/Editing Qt Resource File (.rcc)

I want to translate a program; but its language files (.qm) are in a .rcc file. The program is not mine, so I haven't got any .qrc file. Before asking this question, I have searched this site about this issue; but I don't attain anything. Is there…
DrakeMcCain
  • 129
  • 3
  • 14
6
votes
1 answer

Qt resource internationalization fails

Here is the quote from the Qt documentation: Some resources need to change based on the user's locale, such as translation files or icons. This is done by adding a lang attribute to the qresource tag, specifying a suitable locale string. For…
ScumCoder
  • 690
  • 1
  • 8
  • 20
5
votes
1 answer

How to use qt5_add_binary_resources in CMake to generate rcc files

I'm trying to create rcc files with CMake, using the qt5_add_binary_resources(target inputfile ... OPTIONS ... DESTINATION ...) macro: qt5_add_binary_resources(myApp "themes/redTheme.qrc" OPTIONS ARGS -binary) Since I'm using other macros such as…
Grégoire Borel
  • 1,880
  • 3
  • 33
  • 55
5
votes
1 answer

A .py file which compiled from .qrc file( using pyside-rcc ) does not work

I am working on python project and I have a problem with my .py file which complied from .qrc file. First, let I explain briefly about my project. I created my project GUI in QtDesigner and also use the image in the GUI. Then, I generate .py from…
Pandarian Ld
  • 727
  • 3
  • 13
  • 25
4
votes
4 answers

Qt linker error LNK2019 on qInitResources() - RCC

I want to compile a project with Qt in Visual Studio 2010. I have built all the prerequisite libraries and linked them in project properties. I have also made the .cpp file from the project.qrc file (rcc) with the command below: rcc project.qrc…
MTs
  • 199
  • 2
  • 19
4
votes
2 answers

Qt: How to turn off resource compression in pro-file?

I have read "The Qt Resource System" article. In paragraph "Compression" there is information on how to turn off compression by parameters in rcc command line. But rcc command line is auto-generated by qmake from pro file. If I change rcc command…
Andrey Epifantsev
  • 976
  • 1
  • 11
  • 27
3
votes
0 answers

Enabling CMAKE_AUTORCC also enables CMAKE_AUTOMOC even if it's disabled

In CMakeLists.txt I explicitely set: set(CMAKE_AUTOMOC OFF) set(CMAKE_AUTORCC ON) However, I still get automoc project generated which is empty. If not using AUTORCC, there is no automoc project. Does anybody know why it behaves like this and…
Werolik
  • 923
  • 1
  • 9
  • 23
3
votes
0 answers

QMAKE_EXTRA_COMPILERS dependencies issue

All I have Qt project which contains .ts-file and .qrc-file containing reference to generated .qm-file. We do not store .qm-files in our version control system. The issue here is that when I check out source code and run "make", I'm getting error…
Andriy
  • 123
  • 12
2
votes
1 answer

RCC Parse Error during make with cmake and Qt4

I have a small Qt4 project which I want to build with cmake. It has a QTcpServer and a QThread, which both include the Q_OBJECT macro. When I'm running make I always get an RCC Parse Error after generating qrc_tcpserver.cxx. The exact failure output…
Stephan
  • 15,704
  • 7
  • 48
  • 63
2
votes
2 answers

QFile.open fails to open a file inside resource qrc

I have encountered a strange issue where QFile.open is unable to open a file which is added in the qrc resource file. My qrc file looks like this I'm using following code to read the file theme_normal.qss QFile…
warunanc
  • 2,221
  • 1
  • 23
  • 40
2
votes
1 answer

Creating binary external resource file in Qt

I need to create binary external resource file due to the fact that I'm working with multiple large images. I tried to create it from the commandline in Qt Creator as stated in the documentation (with rcc -binary image.qrc -o image.rcc command,…
Vex
  • 31
  • 5
2
votes
0 answers

QResource unregisterResource returns always false

I have a problem registering/unregistering .rcc files. I have several .qrc files (themes, for customization reasons) from which I create the coresponding .rcc files at build time. From the application the user should be able to change the .rcc theme…
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
2
votes
2 answers

qmake and generated qm files

What is the best (proper) way to organize compiled translations (*.qm) into resources? *.qm files referred in qrc file and generated by two (three) extra targets this way: trans_update.commands = lupdate $$_PRO_FILE_ trans_update.depends =…
mbg033
  • 501
  • 5
  • 18
1
2 3