v = qt_constant(constant_name)
ce = qt_constant()
| Parameter | Description |
|---|---|
| constant_name | a string: desired Qt constant. |
| Parameter | Description |
|---|---|
| v | a scalar integer value (Qt constant value). |
| ce | a cell with all constant name available. |
v = qt_version(constant_name) returns Qt constant value.
Qt 5 family allows to get constant easily with qml_evaluatestring(constant_name), but it is no more available with Qt 6
qt_constant('Qt.WindowModal')
c = qt_constant()
| Version | Description |
|---|---|
| 1.0.0 | initial version |