Skip to content

Commit

Permalink
Add a bit more documentation and links
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Viperino committed Apr 23, 2022
1 parent 9b04153 commit b17ac04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ In the meantime, nothing prevents you from doing standalone apps in QML, as long

- If you're crazy enough and you realize in the mid of a project that you need more performance, you could potentially rewrite the backend in C++ and leave the frontend almost untouched

- Great performance thanks to the new QtQuick Scene Graph implementation (https://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html)

- It finally offers TreeViews and TreeModels!

#### ..and why it's still challenging
Expand All @@ -35,7 +37,7 @@ In the meantime, nothing prevents you from doing standalone apps in QML, as long

- You might find it harder to tweak some of the UI elements exactly as you'd like to

- As a framework, it's not as old and mature as QtWidgets, so expect things to change or be unsupported
- As a framework, it's not as old and mature as QtWidgets, so expect things to change or be deprecated between versions

## FAQs

Expand Down Expand Up @@ -71,7 +73,7 @@ This could be for example used as the start of an app for publishing frames
![publisher-app/publisher-app.png](publisher-app/publisher-app.png)

## launcher-app
An example of a application launcher where updating a dropdown causes the update of the others. Uses a reusable `ContextDropDown` qml component that works with a standard `ListModel` but has a customized delegate to add whatever pizzazz we want to add to render it.
An example of an application launcher where updating a dropdown menu causes the update of the others. Uses a reusable `ContextDropDown` qml component that works with a standard `ListModel` with a custom delegate.

![launcher-app/launcher-app.png](launcher-app/launcher-app.png)

Expand All @@ -90,6 +92,6 @@ For now, I think that those would be nice:

## Code
- Improving the existing examples to make it easier to follow through
- Add more generic examples to showcase different usage scenarios
- Add more generic examples to showcase different usage scenarios (I'd love to see a Text autocompleter implemented in Qml!)
- Check on all OS (I can only test on macOS and Centos 7.7!)
- Write tests
3 changes: 3 additions & 0 deletions launcher-app/ContextDropDown.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ RowLayout {
// Dictates how each element in the ComboBox will render
Component {
id: dropdownDelegate
// https://doc.qt.io/qt-5/qml-qtquick-controls2-itemdelegate.html
ItemDelegate {
text: name
}
}

// The dropdown menu
// https://doc.qt.io/qt-5/qml-qtquick-controls2-combobox.html
ComboBox {
id: dropdown
model: dropdownModel
Expand Down

0 comments on commit b17ac04

Please sign in to comment.