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:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user