En esta página

Lista de objetos y funciones JavaScript

Esta referencia contiene una lista de objetos, funciones y propiedades soportados por JavaScript engine en Qt. Para obtener una descripción detallada, consulte la especificación ECMA-262.

Objeto global

Propiedades de valor

  • NaN
  • Infinity
  • undefined

Propiedades de función

  • eval(x)
  • parseInt(string, radix)
  • parseFloat(string)
  • isNaN(number)
  • isFinite(number)
  • decodeURI(encodedURI)
  • decodeURIComponent(encodedURIComponent)
  • encodeURI(uri)
  • encodeURIComponent(uriComponent)
  • escape(string)
  • unescape(string)

Propiedades del constructor

  • Object
  • Function
  • Array
  • ArrayBuffer
  • String
  • Boolean
  • Number
  • DataView
  • Date
  • Promise
  • RegExp
  • Map
  • WeakMap
  • Set
  • WeakSet
  • SharedArrayBuffer
  • Symbol
  • Error
  • EvalError
  • RangeError
  • ReferenceError
  • SyntaxError
  • TypeError
  • URIError

Otras propiedades

  • Atomics
  • Math
  • JSON
  • Reflect
  • Proxy

El objeto Objeto

Constructor de objetos

Propiedades de la función

  • 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)

Prototipo de objeto

Propiedades de Función

  • toString()
  • toLocaleString()
  • valueOf()
  • hasOwnProperty(V)
  • isPrototypeOf(V)
  • propertyIsEnumerable(V)
  • __defineGetter__(P, F)
  • __defineSetter__(P, F)

Objetos de función

Prototipo de función

Propiedades de la función

  • toString()
  • apply(thisArg, argArray)
  • call(thisArg [, arg1 [, arg2, ...]])
  • bind((thisArg [, arg1 [, arg2, …]])
  • [Symbol.hasInstance](O)

Objetos Array

Objeto prototipo de array

Propiedades de función

  • toString()
  • toLocaleString()
  • concat([item1 [, item2 [, ...]]])
  • copyWithin([item1 [, item2 [, ...]]])
  • entries()
  • fill(item [, index1 [, index2]])
  • join(separator)
  • find(callbackfn [, thisArg]) // ECMAScript 6: Añadido en Qt 5.9
  • findIndex(callbackfn [, thisArg]) // ECMAScript 6: Añadido en Qt 5.9
  • includes(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]()

Objetos String

Objeto Prototipo String

Propiedades de Función

  • toString()
  • valueOf()
  • charAt(pos)
  • charCodeAt(pos)
  • codePointAt(pos)
  • concat([string1 [, string2 [, ...]]])
  • endsWith(searchString [, endPosition ]) // ECMAScript 6: Añadido en Qt 5.8
  • includes(searchString [, position ]) // ECMAScript 6: Añadido en 5.8
  • indexOf(searchString ,position)
  • lastIndexOf(searchString, position)
  • localeCompare(that)
  • match(regexp)
  • normalize()
  • padEnd(length [, string])
  • padStart(length [, string])
  • repeat(count) // ECMAScript 6: Añadido en Qt 5.9
  • replace(searchValue, replaceValue)
  • search(regexp)
  • slice(start, end)
  • split(separator, limit)
  • startsWith(searchString [, position ]) // ECMAScript 6: Añadido en Qt 5.8
  • substr(start, length)
  • substring(start, end)
  • toLowerCase()
  • toLocaleLowerCase()
  • toUpperCase()
  • toLocaleUpperCase()
  • trim()
  • [Symbol.iterator]()

Además, el motor QML añade las siguientes funciones al prototipo String:

Objetos Booleanos

Objeto Prototipo Booleano

Función Propiedades

  • toString()
  • valueOf()

Objetos numéricos

Objeto prototipo numérico

Propiedades de función

  • toString(radix)
  • toLocaleString()
  • valueOf()
  • toFixed(fractionDigits)
  • toExponential(fractionDigits)
  • toPrecision(precision)

Además, el motor QML añade las siguientes funciones al prototipo Number:

El objeto Number

Propiedades de valor

  • NaN
  • NEGATIVE_INFINITY
  • POSITIVE_INFINITY
  • MAX_VALUE
  • MIN_VALUE
  • EPSILON // ECMAScript 6: Añadido en Qt 5.8
  • MAX_SAFE_INTEGER
  • MIN_SAFE_INTEGER

Propiedades de Función

  • isFinite(x) // ECMAScript 6: Añadido en Qt 5.8
  • isInteger(x)
  • isSafeInteger(x)
  • isNaN(x) // ECMAScript 6: Añadido en Qt 5.8

El objeto Math

Propiedades de Valor

  • E
  • LN10
  • LN2
  • LOG2E
  • LOG10E
  • PI
  • SQRT1_2
  • SQRT2

Propiedades de Función

  • 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: Añadido en Qt 5.8
  • sin(x)
  • sinh(x)
  • sqrt(x)
  • tan(x)
  • tanh(x)
  • trunc(x)

Objetos Date

Objeto Prototipo Date

Propiedades de función

  • 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)

Además, el motor QML añade las siguientes funciones al prototipo Date:

Objetos RegExp

Objeto prototipo RegExp

Propiedades de función

  • exec(string)
  • test(string)
  • toString()

Objetos Error

Objeto prototipo de error

Propiedades de valor

  • name
  • message

Propiedades de la función

  • toString()

El objeto JSON

Propiedades de función

  • 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.