Improve C++ usage description, fixes #329

This commit is contained in:
Daniel Cosmo Pizetta
2023-10-25 16:02:54 -03:00
parent bce87bf816
commit 3858c55c5d
+8 -8
View File
@@ -101,26 +101,26 @@ C++
- Download/clone the project and copy the following files to your
application directory (keep the existing directory hierarchy).
Substitute the **theme** by the currently available (dark/light)
the theme you need to use.
Substitute the all the **THEME** words by the currently available
(dark/light) the theme you need to use.
- **qdarkstyle/theme/style.qss**
- **qdarkstyle/theme/style.qrc**
- **qdarkstyle/theme/rc/** (the whole directory)
- **qdarkstyle/THEME/THEMEstyle.qss**
- **qdarkstyle/THEME/THEMEstyle.qrc**
- **qdarkstyle/THEME/rc/** (the whole directory)
- Add **qdarkstyle/theme/style.qrc** to your **.pro file** as follows:
- Add **qdarkstyle/THEME/THEMEstyle.qrc** to your **.pro file** as follows:
.. code:: c++
RESOURCES += qdarkstyle/theme/style.qrc
RESOURCES += qdarkstyle/THEME/THEMEstyle.qrc
- Load the stylesheet:
.. code:: c++
QFile f(":qdarkstyle/theme/style.qss");
QFile f(":qdarkstyle/THEME/THEMEstyle.qss");
if (!f.exists()) {
printf("Unable to set stylesheet, file not found\n");