2021-06-29 11:55:41 +02:00
# StatusQ
2021-04-30 18:23:57 +02:00
2021-06-29 11:55:41 +02:00
> An emerging reusable QML UI component library for Status applications.
2021-05-05 09:52:58 +02:00
## Usage
StatusQ introduces a module namespace that semantically groups components so they can be easily imported.
These modules are:
- [StatusQ.Core ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Core/qmldir )
- [StatusQ.Core.Theme ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Core/Theme/qmldir )
2021-08-26 21:33:45 +02:00
- [StatusQ.Core.Utils ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Core/Utils/qmldir )
2021-05-06 11:20:50 +02:00
- [StatusQ.Components ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Controls/qmldir )
2021-05-07 12:58:06 +02:00
- [StatusQ.Controls ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Components/qmldir )
2021-05-20 11:23:59 +02:00
- [StatusQ.Layout ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Layout/qmldir )
2021-06-22 11:08:29 +02:00
- [StatusQ.Platform ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Platform/qmldir )
2021-06-02 12:41:31 +02:00
- [StatusQ.Popups ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Popups/qmldir )
2021-05-05 09:52:58 +02:00
Provided components can be viewed and tested in the [sandbox application ](#viewing-and-testing-components ) that comes with this repository.
Other than that, modules and components can be used as expected.
Example:
```
import Status.Core 0.1
import Status.Controls 0.1
StatusInput {
...
}
```
2021-06-29 13:43:31 +02:00
## Viewing and testing components
To make viewing and testing components easy, we've added a sandbox application to this repository in which StatusQ components are being build. This is the first place where components see the light of the world and can be run in a proper application environment.
### Using Qt Creator
2022-07-21 07:43:47 +02:00
The easiest way to run the sandbox application is to simply open the provided `CMakeLists.txt` file using Qt Creator.
2021-06-29 13:43:31 +02:00
### Using command line interface
To run the sandbox from within a command line interface, run the following commands:
```
$ git clone https://github.com/status-im/StatusQ
2022-07-21 07:43:47 +02:00
$ cd StatusQ
$ git submodule update --init
2023-02-20 16:49:09 +01:00
$ ./scripts/build
2021-06-29 13:43:31 +02:00
```
Once that is done, the sandbox can be started with the generated executable:
```
2022-07-21 07:43:47 +02:00
$ ./build/sandbox/Sandbox
2021-06-29 13:43:31 +02:00
```