qt_constant
Returns Qt constant value.
📝 Syntax
v = qt_constant(constant_name)
ce = qt_constant()
📥 Input argument
constant_name - a string: desired Qt constant.
📤 Output argument
v - a scalar integer value (Qt constant value).
ce - a cell with all constant name available.
📄 Description
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
💡 Example
qt_constant('Qt.WindowModal')
c = qt_constant()🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?