Liste des objets et fonctions JavaScript
Cette référence contient une liste d'objets, de fonctions et de propriétés pris en charge par le site JavaScript engine dans Qt XML. Pour une description détaillée, voir la spécification ECMA-262.
L'objet global
Propriétés des valeurs
NaNInfinityundefined
Propriétés des fonctions
eval(x)parseInt(string, radix)parseFloat(string)isNaN(number)isFinite(number)decodeURI(encodedURI)decodeURIComponent(encodedURIComponent)encodeURI(uri)encodeURIComponent(uriComponent)escape(string)unescape(string)
Propriétés des constructeurs
ObjectFunctionArrayArrayBufferStringBooleanNumberDataViewDatePromiseRegExpMapWeakMapSetWeakSetSharedArrayBufferSymbolErrorEvalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIError
Autres propriétés
AtomicsMathJSONReflectProxy
L'objet Objet
Constructeur d'objet
Propriétés des fonctions
getPrototypeOf(O)setPrototypeOf(O, P)getOwnPropertyDescriptor(O, P)getOwnPropertyDescriptors(O)getOwnPropertyNames(O)getOwnPropertySymbols(O)assign(O [, Properties])create(O [, Properties])defineProperty(O, P, Attributes)defineProperties(O, Properties)entries(O)is(V1, V2)keys(O)values(O)seal(O)isSealed(O)freeze(O)isFrozen(O)preventExtensions(O)isExtensible(O)
Prototype d'objet
Propriétés des fonctions
toString()toLocaleString()valueOf()hasOwnProperty(V)isPrototypeOf(V)propertyIsEnumerable(V)__defineGetter__(P, F)__defineSetter__(P, F)
Objets de fonction
Prototype de fonction
Propriétés des fonctions
toString()apply(thisArg, argArray)call(thisArg [, arg1 [, arg2, ...]])bind((thisArg [, arg1 [, arg2, …]])[Symbol.hasInstance](O)
Objets de tableau
Prototype de tableau Objet
Propriétés de la fonction
toString()toLocaleString()concat([item1 [, item2 [, ...]]])copyWithin([item1 [, item2 [, ...]]])entries()fill(item [, index1 [, index2]])join(separator)find(callbackfn [, thisArg])// ECMAScript 6 : ajouté dans Qt 5.9findIndex(callbackfn [, thisArg])// ECMAScript 6 : ajouté dans Qt 5.9includes(item)keys()pop()push([item1 [, item2 [, ...]]])reverse()shift()slice(start, end)sort(comparefn)splice(start, deleteCount[, item1 [, item2 [, ...]]])unshift([item1 [, item2 [, ...]]])indexOf(searchElement [, fromIndex])lastIndexOf(searchElement [, fromIndex])every(callbackfn [, thisArg])some(callbackfn [, thisArg])forEach(callbackfn [, thisArg])map(callbackfn [, thisArg])filter(callbackfn [, thisArg])reduce(callbackfn [, initialValue])reduceRight(callbackfn [, initialValue])values()[Symbol.iterator]()
Objets de type chaîne
Prototype d'objet chaîne
Propriétés des fonctions
toString()valueOf()charAt(pos)charCodeAt(pos)codePointAt(pos)concat([string1 [, string2 [, ...]]])endsWith(searchString [, endPosition ])// ECMAScript 6 : ajouté dans Qt 5.8includes(searchString [, position ])// ECMAScript 6 : ajouté dans Qt 5.8indexOf(searchString ,position)lastIndexOf(searchString, position)localeCompare(that)match(regexp)normalize()padEnd(length [, string])padStart(length [, string])repeat(count)// ECMAScript 6 : ajouté à la version 5.9 de Qtreplace(searchValue, replaceValue)search(regexp)slice(start, end)split(separator, limit)startsWith(searchString [, position ])// ECMAScript 6 : Ajouté dans Qt 5.8substr(start, length)substring(start, end)toLowerCase()toLocaleLowerCase()toUpperCase()toLocaleUpperCase()trim()[Symbol.iterator]()
De plus, le moteur QML ajoute les fonctions suivantes au prototype String:
Objets booléens
Prototype d'objet booléen
Fonction Propriétés
toString()valueOf()
Objets de type nombre
Prototype d'objet Nombre
Propriétés de la fonction
toString(radix)toLocaleString()valueOf()toFixed(fractionDigits)toExponential(fractionDigits)toPrecision(precision)
En outre, le moteur QML ajoute les fonctions suivantes au prototype Number:
- fromLocaleString(locale, nombre)
- toLocaleCurrencyString(locale, symbole)
- toLocaleString(locale, format, précision)
L'objet Nombre
Propriétés de la valeur
NaNNEGATIVE_INFINITYPOSITIVE_INFINITYMAX_VALUEMIN_VALUEEPSILON// ECMAScript 6 : Ajouté dans Qt 5.8MAX_SAFE_INTEGERMIN_SAFE_INTEGER
Propriétés des fonctions
isFinite(x)// ECMAScript 6 : ajouté dans Qt 5.8isInteger(x)isSafeInteger(x)isNaN(x)Propriétés des fonctions // ECMAScript 6 : ajouté dans Qt 5.8
L'objet Math
Propriétés des valeurs
ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2
Propriétés des fonctions
abs(x)acos(x)acosh(x)asin(x)asinh(x)atan(x)atanh(x)atan2(y, x)cbrt(x)ceil(x)clz32(x)cos(x)cosh(x)exp(x)expm1(x)floor(x)fround(x)hypot(x, y)imul(x, y)log(x)log10(x)log1p(x)log2(x)max([value1 [, value2 [, ...]]])min([value1 [, value2 [, ...]]])pow(x, y)random()round(x)sign(x)// ECMAScript 6 : Ajouté dans Qt 5.8sin(x)sinh(x)sqrt(x)tan(x)tanh(x)trunc(x)
Objets Date
Prototype d'objet date
Propriétés de la fonction
toString()toDateString()toTimeString()toLocaleString()toLocaleDateString()toLocaleTimeString()valueOf()getTime()getFullYear()getUTCFullYear()getMonth()getUTCMonth()getDate()getUTCDate()getDay()getUTCDay()getHours()getUTCHours()getMinutes()getUTCMinutes()getSeconds()getUTCSeconds()getMilliseconds()getUTCMilliseconds()getTimeZoneOffset()setTime(time)setMilliseconds(ms)setUTCMilliseconds(ms)setSeconds(sec [, ms])setUTCSeconds(sec [, ms])setMinutes(min [, sec [, ms]])setUTCMinutes(min [, sec [, ms]])setHours(hour [, min [, sec [, ms]]])setUTCHours(hour [, min [, sec [, ms]]])setDate(date)setUTCDate(date)setMonth(month [, date])setUTCMonth(month [, date])setYear(year)setFullYear(year [, month [, date]])setUTCFullYear(year [, month [, date]])toUTCString()toGMTString()toISOString()toJSON()[Symbol.toPrimitive](hint)
En outre, le moteur QML ajoute les fonctions suivantes au prototype Date:
- timeZoneUpdated()
- toLocaleDateString(locale, format)
- toLocaleString(locale, format)
- toLocaleTimeString(locale, format)
Objets RegExp
Objet prototype RegExp
Propriétés des fonctions
exec(string)test(string)toString()
Objets Error
Prototype d'objet Error
Propriétés de valeur
namemessage
Propriétés des fonctions
toString()
L'objet JSON
Propriétés des fonctions
parse(text [, reviver])stringify(value [, replacer [, space]])
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.