1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

0029631: Samples: build AndroidQt sample together with OCCT on Windows platform

- _WIN32 definition provides functionality for sample on Windows
- CMake procedure is changed to have Qt5_FOUND variable defined before compilation modules. Searching of Qt packages is moved into qt.cmake.
This commit is contained in:
nds
2018-03-23 10:36:07 +03:00
parent 384db46a5a
commit 41ea50ac6f
10 changed files with 135 additions and 37 deletions

View File

@@ -28,6 +28,9 @@ Window {
id: root_window
visible: true
width: (Qt.platform.os == "android" || Qt.platform.os == "ios") ? Screen.width : 600
height: (Qt.platform.os == "android" || Qt.platform.os == "ios") ? Screen.height : 400
Item {
id: root_item
anchors.fill: parent
@@ -52,8 +55,8 @@ Window {
anchors.left: parent.left
// size
width: 200
height: 200
width: (Qt.platform.os == "android" || Qt.platform.os == "ios") ? 200 : 150
height: (Qt.platform.os == "android" || Qt.platform.os == "ios") ? 200 : 150
color: "white"