Provides methods for logging and debugging. More...


  • void log(string value)

Detailed Description

You can use the console object to print log information about installer functions to the console. The following example uses the console object log method and installer object installer::isUpdater(), installer::isUninstaller(), and installer::isPackageManager() methods to display a message that indicates whether the maintenance tool is currently being used to update, remove, or add components.

onPackageManagerCoreTypeChanged = function()
    console.log("Is Updater: " + installer.isUpdater());
    console.log("Is Uninstaller: " + installer.isUninstaller());
    console.log("Is Package Manager: " + installer.isPackageManager());

Method Documentation

void log(string value)

Prints the string specified by value to the console.

© 2021 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. The Qt Company, Qt and their 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.