ArcGIS Developers
Dashboard

System QML Type

System provides a platform-specific registry of information that you can store and retrieve. More...

Import Statement: import Esri.ArcGISExtras 1.1
Since: Esri.ArcGISExtras 1.0

Properties

Signals

Methods

Detailed Description

The System type assists QML apps that need to access system resources, such as:

  • Commonly used folders
  • Persisted app settings
  • Display scale factor
  • Logging

Property Documentation

isOnline : bool

Returns true if the app is connected to a network (read-only).


loggingEnabled : bool

Whether logging is enabled.


settings : Settings

Returns the settings read from persisted configuration settings (read-only).


temporaryFolder : FileFolder

Returns the system's temporary folder as a FileFolder (read-only).


userHomeFolder : FileFolder

Returns the user's home folder as a FileFolder (read only).

This property may be set indirectly by setting userHomePath.


userHomePath : url

The user's home folder as a url.

When you set this property, you change the property userHomeFolder.


Signal Documentation

loggingEnabledChanged()

Emitted when loggingEnabled property of this object changes.

Note: The corresponding handler is onLoggingEnabledChanged.


onlineStateChanged(bool online)

Emitted when isOnline property of this object changes.

Includes online that indicates the isOnline property.

Note: The corresponding handler is onOnlineStateChanged.


userHomePathChanged()

Emitted when userHomePath and userHomeFolder properties of this object change.

Note: The corresponding handler is onUserHomePathChanged.


Method Documentation

string pathVariable(string name)

Returns the value of the path variable associated with name.

Multiple path variables may be defined, each with a unique name identifying it.

See also setPathVariable().


string resolvedPath(url pathUrl)

Returns the resolved path of the URL in pathUrl as a string.


string resolvedPath(string path)

Returns path as a resolved path.


url resolvedPathUrl(string pathUrl)

Returns the resolved path in pathUrl as a URL.


void setLoggingFilterRules(string rules)

Sets the logging filter rules.

The filters are those defined for QLoggingCategory.


void setPathVariable(string name, string value)

Sets the value of the path variable associated with name to a value.

Multiple path variables may be defined, each with a unique name identifying it.

See also pathVariable().


void wait(int msecs)

Cause the current execution thread to wait for msecs milliseconds.



Feedback on this topic?