Commit Graph

3 Commits

Author SHA1 Message Date
Assam Boudjelthia 5a5d0e5020 Improve demos for edge-to-edge mode
Set root window background correctly and add safe margins to
QML Window when needed so that demo apps look good also on
edge-to-edge mode.

Ideally, we could also set Qt.ExpandedClientAreaHint window
flag, but since Android doesn't handle status bar coloring
well yet, it's better to leave it until that's supported.

Pick-to: 6.9 6.10
Change-Id: I2bf55aaa990909dea340c195056afcd511960395
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2025-09-03 23:28:46 +03:00
Kai Köhne f47c18d6b1 calqlatr: Reformat .qml files
Do use qmlformat to make sure that the .qml files in
the example are uniform. Just leave out some changes that
make lines like

      case Qt.Key_0: digitPressed("0"); break;

unneccessarily long.

Store the restriction to 100chars in a .qmlformat.ini file
for other examples.

Pick-to: 6.10
Change-Id: I3f77efa83b2d5e01f1497687763e5c327da71ff2
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2025-06-30 11:22:15 +02:00
Ed Cooke 697eaa086a Rewrite the calqlatr example to use responsive layouts
Implement the new design for the calqlatr example, including a
scientific/landscape mode. The animation controller has been removed for
practicality. Responsive layouts now handle changing between a portrait
and a landscape layout.

Fixes: QTBUG-118519
Change-Id: I1a33b1825a877b2b45afedc3a019a906c3f45d29
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-12-13 17:17:22 +01:00