mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 16:31:17 -05:00
Update README.md
Improve c++ installation/usage procedure
This commit is contained in:
parent
3094cfb0c9
commit
03e50a75cc
29
README.md
29
README.md
@ -36,11 +36,32 @@ pip install qdarkstyle
|
||||
C++
|
||||
---------
|
||||
|
||||
Download/clone the project and copy the following files to your application directory:
|
||||
1) Download/clone the project and copy the following files to your application directory (keep the existing directory hierarchy):
|
||||
|
||||
- **qdarkstyle/style.qss**
|
||||
- **qdarkstyle/style.qrc**
|
||||
- **qdarkstyle/rc/** (the whole directory)
|
||||
|
||||
2) Add **qdarkstyle/style.qrc** to your **.pro file**
|
||||
|
||||
3) Load the stylesheet:
|
||||
|
||||
```cpp
|
||||
QFile f("style.qss");
|
||||
|
||||
if ( !f.exists() )
|
||||
{
|
||||
printf("Unable to stylesheet\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
f.open(QFile::ReadOnly | QFile::Text);
|
||||
QTextStream ts(&f);
|
||||
app.setStyleSheet(ts.readAll());
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
- **qdarkstyle/style.qss**
|
||||
- **qdarkstyle/style.qrc**
|
||||
- **qdarkstyle/rc/** (the whole directory)
|
||||
|
||||
Usage
|
||||
============
|
||||
|
Loading…
Reference in New Issue
Block a user