Obsolete Members for MainView
The following members of QML type MainView are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Properties
- actionManager : ActionManager
- actions : list<Action>
- active : bool
- anchorToKeyboard : bool
- applicationName : string
- automaticOrientation : bool
- backgroundColor : color
- footerColor : color
- headerColor : color
Property Documentation
[read-only] actionManager : ActionManager |
The ActionManager that supervises the global and local ActionContexts. The actions property should be used preferably since it covers most use cases. The ActionManager is accessible to have a more refined control over the actions, e.g. if one wants to add/remove actions dynamically, create specific action contexts, etc.
anchorToKeyboard : bool |
The property holds if the application should automatically resize the contents when the input method appears
The default value is false.
applicationName : string |
The property holds the application's name, which must be the same as the desktop file's name. The name also sets the name of the QCoreApplication and defaults for data and cache folders that work on the desktop and under confinement, as well as the default gettext domain. C++ code that writes files may use QStandardPaths::writableLocation with QStandardPaths::DataLocation or QStandardPaths::CacheLocation.
automaticOrientation : bool |
Sets whether the application will be automatically rotating when the device is.
The default value is false.
backgroundColor : color |
Color of the background.
The background is usually a single color. However if headerColor or footerColor are set then a gradient of colors will be drawn.
For example, in order for the MainView to draw a color gradient beneath the content:
import QtQuick 2.4 import Lomiri.Components 1.2 MainView { width: units.gu(40) height: units.gu(60) headerColor: "#343C60" backgroundColor: "#6A69A2" footerColor: "#8896D5" }
See also footerColor and headerColor.
footerColor : color |
Color of the footer's background.
See also backgroundColor and headerColor.
headerColor : color |
Color of the header's background.
See also backgroundColor and footerColor.