Obsolete Members for Qt
The following members of QML type Qt are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Methods
- string atob(string data)
(deprecated in 6.11)
- string btoa(string data)
(deprecated in 6.11)
- object include(string url, jsobject callback)
(deprecated)
Method Documentation
[deprecated in 6.11]
string atob(string data)
This method is deprecated since QtQml 6.11. We strongly advise against using it in new code.
This method performs a Latin-1 conversion of the string before decoding it and then interprets the result as UTF-8.
ASCII to binary — this function decodes the base64 encoded data string and returns it.
[deprecated in 6.11]
string btoa(string data)
This method is deprecated since QtQml 6.11. We strongly advise against using it in new code.
This method performs a UTF-8 conversion of the string before encoding it.
Binary to ASCII — this function returns a base64 encoding of data.
[deprecated]
object include(string url, jsobject callback)
This method is deprecated. We strongly advise against using it in new code.
This method should not be used. Use ECMAScript modules, and the native JavaScript import
and export
statements instead.
Includes another JavaScript file. This method can only be used from within JavaScript files, and not regular QML files.
This imports all functions from url into the current script's namespace.
Qt.include() returns an object that describes the status of the operation. The object has a single property, status
, that is set to one of the following values:
Symbol | Value | Description |
---|---|---|
result.OK | 0 | The include completed successfully. |
result.LOADING | 1 | Data is being loaded from the network. |
result.NETWORK_ERROR | 2 | A network error occurred while fetching the url. |
result.EXCEPTION | 3 | A JavaScript exception occurred while executing the included code. An additional exception property will be set in this case. |
The status
property will be updated as the operation progresses.
If provided, callback is invoked when the operation completes. The callback is passed the same object as is returned from the Qt.include() call.
Warning: Using this function is strict mode does not actually put identifier into the current context.
© 2025 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.