C++ Qt 13 - Resource Files

How to create and read from QT resource files that are compiled in your application

Video tags:


I fucking gave up trying to fix "Could not reading"
Thank you so much
Hi, I am wondering that is  there anyway to  use ifstream directly in QT ?
Ua sound changes to a very pleasant tone when u said my files :)
Thank you very much ! ;)
Can you write to a resource file?
Cannot open output file debug\abc.exe: Permission denied. I cannot open that file.
The document isn't displayed as formatted in console why
Add "INCLUDEPATH += ." to pro file and rebuild the project solves the "Could not reading" problem
Really like this kind of video. Very quick efficient and informative. Don't waste time to explain something very basic and treat us like knownnothing. 
Brian, you're tutorials are just fantastic. thanks very much!!
@ Chetan ..........Just change the name of the resource from Myfile......because in the previous tutorial you may have saved the txt file from the same name..........that is why just change the name and it will work.
I love your videos.
I watched this and tried to use QIcon where file comes from the project resource file. First it didn't work but I solved it by first copying my icon files manually inside the project folder and then add them using the "Add exisiting files". You used existing project files in the example. Your example could have been better by using files that were first somewhere else in your filesystem. Still thumbs up! Thanks.
For some reason I can't add the prefixes the way Brian did.  The fields are greyed out. If you have a similar problem, in the project explorer, under resources, you can right click on the .qrc file and select Add Prefix.  there you can enter the prefix name. Then in the project explorer the prefix will be added under the .qrc file.  Right click on the prefix, and you can add a file.  Bizarre, but it works.  My problems might be due to my using Windows 10 - QT5.4 (QT creator 3.3.0) doesn't seem quite Windows 10 ready yet.
Love your tutorials
Extremely useful tutorial. I have been using resource files in my projects to store images and some other types of files. The problem I'm having is playing a sound file that is inside a resource file. Does anyone know how I can do this?

Qt Tutorials For Beginners 13 - Resource Collection Files (.qrc)

Qt5 tutorial resource files c++ - creating a resource file for use in qt designer qt how to access resources c++ - qt qrc resource path doesn't work the qt re

C++ Qt 14 - QLabel and QT Designer

Learn how to use the qlabel and the basics of the qt designer

C++ Qt 12 - QFile

How to work with the qt qfile class to write and read files

HTML5 vs Qt

One man, three weeks to create an application using html5 and three weeks using qt. the result speaks for itself. and no, we didn't pay them to say this. glad w

QT C++ GUI Tutorial 11- How to set image with QLabel in Qt

Qt jpg image display load image - qt started using qt creator... how can i insert an image how to add a picture to a graphicsview searches related to how to set

Qt C++ 05 Real Time Plotting with QCustomPlot

Use a button on a gui to add points to a plot. a simple example of how to implement real time plotting in c++.

C++ Qt 33 - QThread part 5 Waiting

Part 5 of the qthread series, learn how to wait for a thread

C++ Demo of finance chart with wxWidgets CodeLite wxCrafter

Get further details for this software combo here

Qt Tutorials For Beginners 23 - QFileDialog

Qfiledialog class | qt widgets how to use qfiledialog how to save file with qfiledialog searches related to qfiledialog open file getopenfilename qt example q

Compiling OpenCV 3.2 for QT 5.8 with MinGW32 (x86) on Windows

How to integrate opencv in qt creator on windows? this step-by-step video shows how to use cmake and mingw to compile opencv 3.2 with extra modules (opencv_cont

QTabWidget: How to add a layout to a tab?

This is a video response to this thread: you can see the problem and a way to avoid it, but the problem still remains.

Qt Tutorials For Beginners 25 - Creating Digital Clock by using QDateTime

Creating a digital clock simple digital clock by using qt searches related to qt digital clock qt 4.7 digital clock digital clock in a phone unable to match cur

C++ Qt 13 - Resource Files