openNewTab
openNewTab(url)
openNewTab(url, timeout)
This function opens a new tab in the browser loading the specified url
. The function returns an object of the BrowserTab Class representing the newly opened tab.
The function takes an optional timeout
specified in milliseconds. The function will abort the creation of the tab if creating the tab, loading the url or hooking up the loaded web page takes longer than the specified timeout. An error is generated indicating the cause for the timeout if this happens.
Note: This function is not available for all types of browsers. Currently supported are Firefox, Chromium-based browsers such as Google Chrome, Safari >=12 and Microsoft Edge.
© 2024 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.