qt5 example
This commit is contained in:
50
projects/Qt/example/README.md
Normal file
50
projects/Qt/example/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
## Темы
|
||||
|
||||
### qt5ct
|
||||
|
||||
```sh
|
||||
apt install qt5ct qt5-style-plugins
|
||||
```
|
||||
|
||||
```sh
|
||||
QT_QPA_PLATFORMTHEME=qt5ct xmake run
|
||||
```
|
||||
|
||||
Настройки осуществляются в приложении `qt5ct`
|
||||
|
||||
### Adwaita
|
||||
|
||||
Установить пакеты `adwaita-qt` и `adwaita-qt6`.
|
||||
|
||||
```sh
|
||||
apt install adwaita-qt adwaita-qt6
|
||||
```
|
||||
|
||||
Светлая тема
|
||||
|
||||
```sh
|
||||
# Светлая тема
|
||||
QT_STYLE_OVERRIDE=adwaita xmake run
|
||||
QT_STYLE_OVERRIDE=Adwaita xmake run
|
||||
```
|
||||
|
||||
Тёмная тема
|
||||
|
||||
```sh
|
||||
# Тёмная тема
|
||||
QT_STYLE_OVERRIDE=adwaita-dark xmake run
|
||||
QT_STYLE_OVERRIDE=Adwaita-dark xmake run
|
||||
```
|
||||
|
||||
## Другое
|
||||
|
||||
|
||||
```cpp
|
||||
/**
|
||||
* Available platform plugins are:
|
||||
* eglfs, linuxfb, minimal, minimalegl, offscreen, vnc,
|
||||
* wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb
|
||||
*/
|
||||
|
||||
qsetenv("QT_QPA_PLATFORM", "minimal").
|
||||
```
|
||||
Reference in New Issue
Block a user