On this page

C

Qt QML Type

Provides a global object with useful enums and functions from Qt. More...

Import Statement: import QtQuick
Since: Qt Quick Ultralite 1.0

Enumerations

Properties

  • uiLanguage : string (since Qt Quick Ultralite 1.1)

Methods

  • font font(object fontConfiguration) (since Qt Quick Ultralite 1.9)
  • matrix4x4 matrix4x4(real m11, real m12, real m13, real m14, real m21, real m22, real m23, real m24, real m31, real m32, real m33, real m34, real m41, real m42, real m43, real m44) (since Qt Quick Ultralite 1.7)
  • point point(real x, real y) (since Qt Quick Ultralite 2.9)
  • point rect(real x, real y, real width, real height) (since Qt Quick Ultralite 2.9)
  • string resolvedUrl(String url) (since Qt Quick Ultralite 2.0)
  • color rgba(real red, real green, real blue, real alpha)

Detailed Description

The Qt object is a global object with utility functions, properties and enums.

It is not instantiable; to use it, call the members of the global Qt object directly. For example:

import QtQuick 2.15

Text {
    color: Qt.rgba(1, 0, 0, 1)
    text: "hello, world"
}

Enums

The Qt object contains some of the enums available in the Qt Namespace. For example, you can access the Qt::Vertical enumeration value as Qt.Vertical.

Types

If the QtQuick module has been imported, the following helper functions for creating objects of specific data types are also available for clients to use:

Enumeration Documentation

[since Qt Quick Ultralite 2.8] AlignmentFlag

This enum type is used to describe alignment. It contains horizontal and vertical flags that can be combined to produce the required effect.

The horizontal flags are:

ConstantDescription
Qt.AlignLeftAligns with the left edge.
Qt.AlignRightAligns with the right edge.
Qt.AlignHCenterCenters horizontally in the available space.

The vertical flags are:

ConstantDescription
Qt.AlignTopAligns with the top.
Qt.AlignBottomAligns with the bottom.
Qt.AlignVCenterCenters vertically in the available space.

You can use only one of the horizontal flags at a time. There is one two-dimensional flag:

ConstantDescription
Qt.AlignCenterCenters in both dimensions.

You can use only one horizontal and one vertical flag at a time. Qt::AlignCenter counts as both horizontal and vertical.

Conflicting combinations of flags have undefined meanings.

This documentation was introduced in Qt Quick Ultralite 2.8.


CheckState

The possible states of a checkbox

Available states:

ConstantDescription
Qt.UncheckedThe checkbox is unchecked.
Qt.PartiallyCheckedThe checkbox is partially checked. This state is only used when tristate is enabled.
Qt.CheckedThe checkbox is checked.

InputMethodHints

Provides a list of options to hint the input method.

The value is a bit-wise combination of flags, or Qt.ImhNone if no hints are set. The following flags alter the behavior of a TextInput:

ConstantDescription
Qt.ImhNoneNo hints
Qt.ImhHiddenTextCharacters should be hidden, as is typically used when entering passwords.
Qt.ImhSensitiveDataTyped text should not be stored by the active input method in any persistent storage like predictive user dictionary.
Qt.ImhNoAutoUppercaseThe input method should not try to automatically switch to upper case when a sentence ends.
Qt.ImhPreferNumbersNumbers are preferred (but not required).
Qt.ImhPreferUppercaseUpper case letters are preferred (but not required).
Qt.ImhPreferLowercaseLower case letters are preferred (but not required).
Qt.ImhNoPredictiveTextDo not use predictive text (i.e. dictionary lookup) while typing.
Qt.ImhDateThe text editor functions as a date field.
Qt.ImhTimeThe text editor functions as a time field.

Flags that restrict input (exclusive flags) are:

ConstantDescription
Qt.ImhDigitsOnlyOnly digits are allowed.
Qt.ImhFormattedNumbersOnlyOnly number input is allowed. This includes decimal point and minus sign.
Qt.ImhUppercaseOnlyOnly upper case letter input is allowed.
Qt.ImhLowercaseOnlyOnly lower case letters are allowed.
Qt.ImhDialableCharactersOnlyOnly characters suitable for phone dialing are allowed.
Qt.ImhEmailCharactersOnlyOnly characters suitable for email addresses are allowed.
Qt.ImhUrlCharactersOnlyOnly characters suitable for URLs are allowed.

Masks:

ConstantDescription
Qt.ImhExclusiveInputMaskThis mask yields non-zero if any of the exclusive flags are used.

Key

The key names used by Qt.

ConstantDescription
Qt.Key_Escape 
Qt.Key_Tab 
Qt.Key_Backtab 
Qt.Key_Backspace 
Qt.Key_Return 
Qt.Key_EnterTypically located on the keypad.
Qt.Key_Insert 
Qt.Key_Delete 
Qt.Key_PauseThe Pause/Break key (Note: Not related to pausing media)
Qt.Key_Print 
Qt.Key_SysReq 
Qt.Key_ClearCorresponds to the Clear key on selected Apple keyboard models. On other systems it is commonly mapped to the numeric keypad key 5, when Num Lock is off.
Qt.Key_Home 
Qt.Key_End 
Qt.Key_Left 
Qt.Key_Up 
Qt.Key_Right 
Qt.Key_Down 
Qt.Key_PageUp 
Qt.Key_PageDown 
Qt.Key_Shift 
Qt.Key_ControlOn macOS, this corresponds to the Command keys.
Qt.Key_MetaOn macOS, this corresponds to the Control keys. On Windows keyboards, this key is mapped to the Windows key.
Qt.Key_Alt 
Qt.Key_AltGrOn Windows, when the KeyDown event for this key is sent, the Ctrl+Alt modifiers are also set.
Qt.Key_CapsLock 
Qt.Key_NumLock 
Qt.Key_ScrollLock 
Qt.Key_F1 
Qt.Key_F2 
Qt.Key_F3 
Qt.Key_F4 
Qt.Key_F5 
Qt.Key_F6 
Qt.Key_F7 
Qt.Key_F8 
Qt.Key_F9 
Qt.Key_F10 
Qt.Key_F11 
Qt.Key_F12 
Qt.Key_F13 
Qt.Key_F14 
Qt.Key_F15 
Qt.Key_F16 
Qt.Key_F17 
Qt.Key_F18 
Qt.Key_F19 
Qt.Key_F20 
Qt.Key_F21 
Qt.Key_F22 
Qt.Key_F23 
Qt.Key_F24 
Qt.Key_F25 
Qt.Key_F26 
Qt.Key_F27 
Qt.Key_F28 
Qt.Key_F29 
Qt.Key_F30 
Qt.Key_F31 
Qt.Key_F32 
Qt.Key_F33 
Qt.Key_F34 
Qt.Key_F35 
Qt.Key_Super_L 
Qt.Key_Super_R 
Qt.Key_Menu 
Qt.Key_Hyper_L 
Qt.Key_Hyper_R 
Qt.Key_Help 
Qt.Key_Direction_L 
Qt.Key_Direction_R 
Qt.Key_Space 
Qt.Key_Any 
Qt.Key_Exclam 
Qt.Key_QuoteDbl 
Qt.Key_NumberSign 
Qt.Key_Dollar 
Qt.Key_Percent 
Qt.Key_Ampersand 
Qt.Key_Apostrophe 
Qt.Key_ParenLeft 
Qt.Key_ParenRight 
Qt.Key_Asterisk 
Qt.Key_Plus 
Qt.Key_Comma 
Qt.Key_Minus 
Qt.Key_Period 
Qt.Key_Slash 
Qt.Key_0 
Qt.Key_1 
Qt.Key_2 
Qt.Key_3 
Qt.Key_4 
Qt.Key_5 
Qt.Key_6 
Qt.Key_7 
Qt.Key_8 
Qt.Key_9 
Qt.Key_Colon 
Qt.Key_Semicolon 
Qt.Key_Less 
Qt.Key_Equal 
Qt.Key_Greater 
Qt.Key_Question 
Qt.Key_At 
Qt.Key_A 
Qt.Key_B 
Qt.Key_C 
Qt.Key_D 
Qt.Key_E 
Qt.Key_F 
Qt.Key_G 
Qt.Key_H 
Qt.Key_I 
Qt.Key_J 
Qt.Key_K 
Qt.Key_L 
Qt.Key_M 
Qt.Key_N 
Qt.Key_O 
Qt.Key_P 
Qt.Key_Q 
Qt.Key_R 
Qt.Key_S 
Qt.Key_T 
Qt.Key_U 
Qt.Key_V 
Qt.Key_W 
Qt.Key_X 
Qt.Key_Y 
Qt.Key_Z 
Qt.Key_BracketLeft 
Qt.Key_Backslash 
Qt.Key_BracketRight 
Qt.Key_AsciiCircum 
Qt.Key_Underscore 
Qt.Key_QuoteLeft 
Qt.Key_BraceLeft 
Qt.Key_Bar 
Qt.Key_BraceRight 
Qt.Key_AsciiTilde 
Qt.Key_nobreakspace 
Qt.Key_exclamdown 
Qt.Key_cent 
Qt.Key_sterling 
Qt.Key_currency 
Qt.Key_yen 
Qt.Key_brokenbar 
Qt.Key_section 
Qt.Key_diaeresis 
Qt.Key_copyright 
Qt.Key_ordfeminine 
Qt.Key_guillemotleft 
Qt.Key_notsign 
Qt.Key_hyphen 
Qt.Key_registered 
Qt.Key_macron 
Qt.Key_degree 
Qt.Key_plusminus 
Qt.Key_twosuperior 
Qt.Key_threesuperior 
Qt.Key_acute 
Qt.Key_mu 
Qt.Key_paragraph 
Qt.Key_periodcentered 
Qt.Key_cedilla 
Qt.Key_onesuperior 
Qt.Key_masculine 
Qt.Key_guillemotright 
Qt.Key_onequarter 
Qt.Key_onehalf 
Qt.Key_threequarters 
Qt.Key_questiondown 
Qt.Key_Agrave 
Qt.Key_Aacute 
Qt.Key_Acircumflex 
Qt.Key_Atilde 
Qt.Key_Adiaeresis 
Qt.Key_Aring 
Qt.Key_AE 
Qt.Key_Ccedilla 
Qt.Key_Egrave 
Qt.Key_Eacute 
Qt.Key_Ecircumflex 
Qt.Key_Ediaeresis 
Qt.Key_Igrave 
Qt.Key_Iacute 
Qt.Key_Icircumflex 
Qt.Key_Idiaeresis 
Qt.Key_ETH 
Qt.Key_Ntilde 
Qt.Key_Ograve 
Qt.Key_Oacute 
Qt.Key_Ocircumflex 
Qt.Key_Otilde 
Qt.Key_Odiaeresis 
Qt.Key_multiply 
Qt.Key_Ooblique 
Qt.Key_Ugrave 
Qt.Key_Uacute 
Qt.Key_Ucircumflex 
Qt.Key_Udiaeresis 
Qt.Key_Yacute 
Qt.Key_THORN 
Qt.Key_ssharp 
Qt.Key_division 
Qt.Key_ydiaeresis 
Qt.Key_Multi_key 
Qt.Key_Codeinput 
Qt.Key_SingleCandidate 
Qt.Key_MultipleCandidate 
Qt.Key_PreviousCandidate 
Qt.Key_Mode_switch 
Qt.Key_Kanji 
Qt.Key_Muhenkan 
Qt.Key_Henkan 
Qt.Key_Romaji 
Qt.Key_Hiragana 
Qt.Key_Katakana 
Qt.Key_Hiragana_Katakana 
Qt.Key_Zenkaku 
Qt.Key_Hankaku 
Qt.Key_Zenkaku_Hankaku 
Qt.Key_Touroku 
Qt.Key_Massyo 
Qt.Key_Kana_Lock 
Qt.Key_Kana_Shift 
Qt.Key_Eisu_Shift 
Qt.Key_Eisu_toggle 
Qt.Key_Hangul 
Qt.Key_Hangul_Start 
Qt.Key_Hangul_End 
Qt.Key_Hangul_Hanja 
Qt.Key_Hangul_Jamo 
Qt.Key_Hangul_Romaja 
Qt.Key_Hangul_Jeonja 
Qt.Key_Hangul_Banja 
Qt.Key_Hangul_PreHanja 
Qt.Key_Hangul_PostHanja 
Qt.Key_Hangul_Special 
Qt.Key_Dead_Grave 
Qt.Key_Dead_Acute 
Qt.Key_Dead_Circumflex 
Qt.Key_Dead_Tilde 
Qt.Key_Dead_Macron 
Qt.Key_Dead_Breve 
Qt.Key_Dead_Abovedot 
Qt.Key_Dead_Diaeresis 
Qt.Key_Dead_Abovering 
Qt.Key_Dead_Doubleacute 
Qt.Key_Dead_Caron 
Qt.Key_Dead_Cedilla 
Qt.Key_Dead_Ogonek 
Qt.Key_Dead_Iota 
Qt.Key_Dead_Voiced_Sound 
Qt.Key_Dead_Semivoiced_Sound 
Qt.Key_Dead_Belowdot 
Qt.Key_Dead_Hook 
Qt.Key_Dead_Horn 
Qt.Key_Dead_Stroke 
Qt.Key_Dead_Abovecomma 
Qt.Key_Dead_Abovereversedcomma 
Qt.Key_Dead_Doublegrave 
Qt.Key_Dead_Belowring 
Qt.Key_Dead_Belowmacron 
Qt.Key_Dead_Belowcircumflex 
Qt.Key_Dead_Belowtilde 
Qt.Key_Dead_Belowbreve 
Qt.Key_Dead_Belowdiaeresis 
Qt.Key_Dead_Invertedbreve 
Qt.Key_Dead_Belowcomma 
Qt.Key_Dead_Currency 
Qt.Key_Dead_a 
Qt.Key_Dead_A 
Qt.Key_Dead_e 
Qt.Key_Dead_E 
Qt.Key_Dead_i 
Qt.Key_Dead_I 
Qt.Key_Dead_o 
Qt.Key_Dead_O 
Qt.Key_Dead_u 
Qt.Key_Dead_U 
Qt.Key_Dead_Small_Schwa 
Qt.Key_Dead_Capital_Schwa 
Qt.Key_Dead_Greek 
Qt.Key_Dead_Lowline 
Qt.Key_Dead_Aboveverticalline 
Qt.Key_Dead_Belowverticalline 
Qt.Key_Dead_Longsolidusoverlay 
Qt.Key_Back 
Qt.Key_Forward 
Qt.Key_Stop 
Qt.Key_Refresh 
Qt.Key_VolumeDown 
Qt.Key_VolumeMute 
Qt.Key_VolumeUp 
Qt.Key_BassBoost 
Qt.Key_BassUp 
Qt.Key_BassDown 
Qt.Key_TrebleUp 
Qt.Key_TrebleDown 
Qt.Key_MediaPlayA key setting the state of the media player to play
Qt.Key_MediaStopA key setting the state of the media player to stop
Qt.Key_MediaPrevious 
Qt.Key_MediaNext 
Qt.Key_MediaRecord 
Qt.Key_MediaPauseA key setting the state of the media player to pause (Note: not the pause/break key)
Qt.Key_MediaTogglePlayPauseA key to toggle the play/pause state in the media player (rather than setting an absolute state)
Qt.Key_HomePage 
Qt.Key_Favorites 
Qt.Key_Search 
Qt.Key_Standby 
Qt.Key_OpenUrl 
Qt.Key_LaunchMail 
Qt.Key_LaunchMedia 
Qt.Key_Launch0On X11 this key is mapped to "My Computer" (XF86XK_MyComputer) key for legacy reasons.
Qt.Key_Launch1On X11 this key is mapped to "Calculator" (XF86XK_Calculator) key for legacy reasons.
Qt.Key_Launch2On X11 this key is mapped to XF86XK_Launch0 key for legacy reasons.
Qt.Key_Launch3On X11 this key is mapped to XF86XK_Launch1 key for legacy reasons.
Qt.Key_Launch4On X11 this key is mapped to XF86XK_Launch2 key for legacy reasons.
Qt.Key_Launch5On X11 this key is mapped to XF86XK_Launch3 key for legacy reasons.
Qt.Key_Launch6On X11 this key is mapped to XF86XK_Launch4 key for legacy reasons.
Qt.Key_Launch7On X11 this key is mapped to XF86XK_Launch5 key for legacy reasons.
Qt.Key_Launch8On X11 this key is mapped to XF86XK_Launch6 key for legacy reasons.
Qt.Key_Launch9On X11 this key is mapped to XF86XK_Launch7 key for legacy reasons.
Qt.Key_LaunchAOn X11 this key is mapped to XF86XK_Launch8 key for legacy reasons.
Qt.Key_LaunchBOn X11 this key is mapped to XF86XK_Launch9 key for legacy reasons.
Qt.Key_LaunchCOn X11 this key is mapped to XF86XK_LaunchA key for legacy reasons.
Qt.Key_LaunchDOn X11 this key is mapped to XF86XK_LaunchB key for legacy reasons.
Qt.Key_LaunchEOn X11 this key is mapped to XF86XK_LaunchC key for legacy reasons.
Qt.Key_LaunchFOn X11 this key is mapped to XF86XK_LaunchD key for legacy reasons.
Qt.Key_LaunchGOn X11 this key is mapped to XF86XK_LaunchE key for legacy reasons.
Qt.Key_LaunchHOn X11 this key is mapped to XF86XK_LaunchF key for legacy reasons.
Qt.Key_MonBrightnessUp 
Qt.Key_MonBrightnessDown 
Qt.Key_KeyboardLightOnOff 
Qt.Key_KeyboardBrightnessUp 
Qt.Key_KeyboardBrightnessDown 
Qt.Key_PowerOff 
Qt.Key_WakeUp 
Qt.Key_Eject 
Qt.Key_ScreenSaver 
Qt.Key_WWW 
Qt.Key_Memo 
Qt.Key_LightBulb 
Qt.Key_Shop 
Qt.Key_History 
Qt.Key_AddFavorite 
Qt.Key_HotLinks 
Qt.Key_BrightnessAdjust 
Qt.Key_Finance 
Qt.Key_Community 
Qt.Key_AudioRewind 
Qt.Key_BackForward 
Qt.Key_ApplicationLeft 
Qt.Key_ApplicationRight 
Qt.Key_Book 
Qt.Key_CD 
Qt.Key_CalculatorOn X11 this key is not mapped for legacy reasons. Use Qt::Key_Launch1 instead.
Qt.Key_ToDoList 
Qt.Key_ClearGrab 
Qt.Key_Close 
Qt.Key_Copy 
Qt.Key_Cut 
Qt.Key_Display 
Qt.Key_DOS 
Qt.Key_Documents 
Qt.Key_Excel 
Qt.Key_Explorer 
Qt.Key_Game 
Qt.Key_Go 
Qt.Key_iTouch 
Qt.Key_LogOff 
Qt.Key_Market 
Qt.Key_Meeting 
Qt.Key_MenuKB 
Qt.Key_MenuPB 
Qt.Key_MySites 
Qt.Key_News 
Qt.Key_OfficeHome 
Qt.Key_Option 
Qt.Key_Paste 
Qt.Key_Phone 
Qt.Key_Calendar 
Qt.Key_Reply 
Qt.Key_Reload 
Qt.Key_RotateWindows 
Qt.Key_RotationPB 
Qt.Key_RotationKB 
Qt.Key_Save 
Qt.Key_Send 
Qt.Key_Spell 
Qt.Key_SplitScreen 
Qt.Key_Support 
Qt.Key_TaskPane 
Qt.Key_Terminal 
Qt.Key_Tools 
Qt.Key_Travel 
Qt.Key_Video 
Qt.Key_Word 
Qt.Key_Xfer 
Qt.Key_ZoomIn 
Qt.Key_ZoomOut 
Qt.Key_Away 
Qt.Key_Messenger 
Qt.Key_WebCam 
Qt.Key_MailForward 
Qt.Key_Pictures 
Qt.Key_Music 
Qt.Key_Battery 
Qt.Key_Bluetooth 
Qt.Key_WLAN 
Qt.Key_UWB 
Qt.Key_AudioForward 
Qt.Key_AudioRepeat 
Qt.Key_AudioRandomPlay 
Qt.Key_Subtitle 
Qt.Key_AudioCycleTrack 
Qt.Key_Time 
Qt.Key_Hibernate 
Qt.Key_View 
Qt.Key_TopMenu 
Qt.Key_PowerDown 
Qt.Key_Suspend 
Qt.Key_ContrastAdjust 
Qt.Key_TouchpadToggle 
Qt.Key_TouchpadOn 
Qt.Key_TouchpadOff 
Qt.Key_MicMute 
Qt.Key_Red 
Qt.Key_Green 
Qt.Key_Yellow 
Qt.Key_Blue 
Qt.Key_ChannelUp 
Qt.Key_ChannelDown 
Qt.Key_Guide 
Qt.Key_Info 
Qt.Key_Settings 
Qt.Key_MicVolumeUp 
Qt.Key_MicVolumeDown 
Qt.Key_New 
Qt.Key_Open 
Qt.Key_Find 
Qt.Key_Undo 
Qt.Key_Redo 
Qt.Key_MediaLast 
Qt.Key_unknown 
Qt.Key_CallA key to answer or initiate a call (see Qt::Key_ToggleCallHangup for a key to toggle current call state)
Qt.Key_CameraA key to activate the camera shutter. On Windows Runtime, the environment variable QT_QPA_ENABLE_CAMERA_KEYS must be set to receive the event.
Qt.Key_CameraFocusA key to focus the camera. On Windows Runtime, the environment variable QT_QPA_ENABLE_CAMERA_KEYS must be set to receive the event.
Qt.Key_Context1 
Qt.Key_Context2 
Qt.Key_Context3 
Qt.Key_Context4 
Qt.Key_Flip 
Qt.Key_HangupA key to end an ongoing call (see Qt::Key_ToggleCallHangup for a key to toggle current call state)
Qt.Key_No 
Qt.Key_Select 
Qt.Key_Yes 
Qt.Key_ToggleCallHangupA key to toggle the current call state (ie. either answer, or hangup) depending on current call state
Qt.Key_VoiceDial 
Qt.Key_LastNumberRedial 
Qt.Key_Execute 
Qt.Key_Printer 
Qt.Key_Play 
Qt.Key_Sleep 
Qt.Key_Zoom 
Qt.Key_Exit 
Qt.Key_Cancel 

LayoutDirection

Provides a list of layout direction options.

ConstantDescription
Qt.LeftToRightItems are laid out from left to right (default).
Qt.RightToLeftItems are laid out from right to left

Orientation

Use this enum to signify an object's orientation.

ConstantDescription
Qt.HorizontalOrient the object horizontally.
Qt.VerticalOrient the object vertically.

Property Documentation

uiLanguage : string [since Qt Quick Ultralite 1.1]

The uiLanguage holds the name of the language to be used for user interface string translations.

You can set the value freely and use it in bindings. By convention, an empty string means no translation from the language used in the source code is intended to occur.

This property was introduced in Qt Quick Ultralite 1.1.

See also Internationalization and Localization with Qt Quick Ultralite.


Method Documentation

[since Qt Quick Ultralite 1.9] font font(object fontConfiguration)

Returns a font with the properties specified in the fontConfiguration object. The fontConfiguration object must contain key-value pairs where valid keys are the font's subproperty names, and the values are valid values for each subproperty.

Calling Qt.font() on a readonly property enables the qmltocpp tool to emit optimized C++ code. This optimization currently is applied for constant font configurations only. In the following example, the optimized code removes the unnecessary bindings on the first three Text items:

function someConditon() : bool { return false }

readonly property font fontConfig1: Qt.font({ pixelSize: 40, italic: true })
readonly property font fontConfig2: Qt.font({ pixelSize: 24 })

Column {
    Text {
        font: fontConfig1
        text: "dog"
    }

    Text {
        font: fontConfig1
        text: "cat"
    }

    Text {
        font: fontConfig2
        text: "mole"
    }

    Text {
        font: someConditon() ? fontConfig1 : fontConfig2
        text: "hedgehog"
    }
}

This method was introduced in Qt Quick Ultralite 1.9.


[since Qt Quick Ultralite 1.7] matrix4x4 matrix4x4(real m11, real m12, real m13, real m14, real m21, real m22, real m23, real m24, real m31, real m32, real m33, real m34, real m41, real m42, real m43, real m44)

Returns a matrix4x4 with the specified values.

The arguments correspond to their positions in the matrix:

m11m12m13m14
m21m22m23m24
m31m32m33m34
m41m42m43m44

This method was introduced in Qt Quick Ultralite 1.7.


[since Qt Quick Ultralite 2.9] point point(real x, real y)

Returns a point with the specified x and y coordinates.

This method was introduced in Qt Quick Ultralite 2.9.


[since Qt Quick Ultralite 2.9] point rect(real x, real y, real width, real height)

Returns a rect with the top left corner at x, y and the specified width and height.

This method was introduced in Qt Quick Ultralite 2.9.


[since Qt Quick Ultralite 2.0] string resolvedUrl(String url)

Identity function for syntactical compatibility with Qt6 QML. Returns the passed-in string url unchanged.

This method was introduced in Qt Quick Ultralite 2.0.


color rgba(real red, real green, real blue, real alpha)

Returns a color with the specified red, green, blue, and alpha components. All components should be in the range 0-1 (inclusive).


Available under certain Qt licenses.
Find out more.