Graphical objects¶
Introduction
Q Studio has a library of default graphical objects for creating Q Application user interfaces. These objects are available in the Types panel, inside the User interface folder. For the details of each type of graphical object, refer to the chapter Object and variable references.
Graphical Object Family
All graphical objects can be grouped in the following families:
Base controls: base objects, e.g. labels, text boxes, buttons, and analog indicators.
Containers: objects that contain other child graphical objects, including other containers, with which to create the basic graphical structure of an application. For example, they can be windows, panels or sections with automatic content alignment.
Contents: web browser, video, and PDF viewer.
Data controls: objects that present and/or allow to select data obtained from a model of project nodes or from a database. For example they can be data grids, combo boxes or trend graphs.
Drawings: shapes and images.
List of Basic controls objects
Object |
Description |
Application examples |
---|---|---|
Set and display a Boolean value using select/deselect. |
- |
|
Inserts and displays a text at runtime. |
- |
|
Display DateTime data. |
Configure and filter a Data grid object with model based on objects |
|
Display Duration-type data. |
- |
|
Visualizes a text. |
- |
|
Display an editable text. |
- |
|
Set and/or display an integer value within a range of possible values. |
||
Set and/or display an integer value within a range of possible values. |
||
Set and display a Boolean value. |
- |
|
Display a Boolean value in the form of on or off LED. |
- |
|
Generate events to run methods. |
- |
|
Select a mutually exclusive option in an option group. |
- |
|
Increase/decrease a numerical value using buttons or keyboard. |
- |
List of Container objects
Object |
Description |
Application examples |
---|---|---|
Expand or collapse content blocks on user click. |
- |
|
Panel that automatically arranges the directly child graphical objects horizontally next to each other. |
- |
|
Panel that automatically arranges the directly child graphical objects vertically next to each other. |
- |
|
Root graphic container. In a Presentation engine, this can be set to determine the initial user interface at runtime. |
- |
|
Window that can be made modal, i.e. not allowing interaction with other interface elements. |
- |
|
Simple objects container. Display the graphical objects it contains and that can be a clickable area. |
- |
|
Panel that contains other panels and automatically organizes them into navigable tabs. |
- |
|
Container that displays different alternative panels at runtime according to the set logics. |
- |
|
- |
- |
|
Button that opens/closes a pop-up panel when clicked. |
- |
|
Panel with the possibility of scrolling, to display content larger than the panel itself. |
- |
List of Contained objects
Object |
Description |
Application examples |
---|---|---|
Display an online web page or a local HTML file at runtime. |
- |
|
Display a video at runtime. |
- |
|
Display a PDF file at runtime. |
- |
List of Data controls objects
Object |
Description |
Application examples |
|
---|---|---|---|
Drop-down selection whose elements are obtained from a model of the project nodes or from one or more database tables. |
- |
||
List whose selectable elements are obtained from project nodes or from one or more database tables. |
- |
||
Table that presents data obtained from project nodes or from one or more database tables. |
Configure and filter a Data grid object with model based on objects |
||
Display the trend of values of one or more variables read in real time and/or logged. |
- |
||
Display the value of two-dimensional variables in a Cartesian chart. |
- |
||
Display the model or database data in a pie chart. |
- |
||
Display the model or database data in a histogram. |
- |
List of Drawings objects
Object |
Description |
Application examples |
---|---|---|
Object container similar to Panel but more customizable in appearance. May be a clickable area. |
- |
|
Display an image. |
- |
|
Visualizza un’immagine SVG di cui è possibile modificare a design time e a runtime alcune proprietà grafiche. |
Tutorial: design a dynamic image in relation to the status of an alarm |