2021-06-29 09:55:41 +00:00
# StatusQ
2021-04-30 16:23:57 +00:00
2021-06-29 09:55:41 +00:00
> An emerging reusable QML UI component library for Status applications.
2021-05-05 07:52:58 +00:00
2022-09-21 13:50:50 +00:00
:bangbang: | This repository is set to read-only. `StatusQ` library is further developed in the [status-desktop ](https://github.com/status-im/status-desktop ) repository.
:---: | :---
2021-05-05 07:52:58 +00: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 19:33:45 +00:00
- [StatusQ.Core.Utils ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Core/Utils/qmldir )
2021-05-06 09:20:50 +00:00
- [StatusQ.Components ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Controls/qmldir )
2021-05-07 10:58:06 +00:00
- [StatusQ.Controls ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Components/qmldir )
2021-05-20 09:23:59 +00:00
- [StatusQ.Layout ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Layout/qmldir )
2021-06-22 09:08:29 +00:00
- [StatusQ.Platform ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Platform/qmldir )
2021-06-02 10:41:31 +00:00
- [StatusQ.Popups ](https://github.com/status-im/StatusQ/blob/master/src/StatusQ/Popups/qmldir )
2021-05-05 07:52:58 +00: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 11:43:31 +00: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 05:43:47 +00:00
The easiest way to run the sandbox application is to simply open the provided `CMakeLists.txt` file using Qt Creator.
2021-06-29 11:43:31 +00: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 05:43:47 +00:00
$ cd StatusQ
$ git submodule update --init
$ ./sandbox/scripts/build
2021-06-29 11:43:31 +00:00
```
Once that is done, the sandbox can be started with the generated executable:
```
2022-07-21 05:43:47 +00:00
$ ./build/sandbox/Sandbox
2021-06-29 11:43:31 +00:00
```