Hi,
I have picture and canvas in main qml.
It shows as expected on Android (samsung edge 7s) and not ios10 (iphone 5). Whey is that? How to corrected? The logo comes expected on android but on iOS
there is a big white gap. Also the portrait orientation is not working bot OS. Any help please?
Here is the part of the code.
{
"title": "**********",
"identifier": "com.***********",
"orientation": "portrait", // This part is not working in both OS.
"versioncode": 1,
"versionname": "1.0",
"stage": "test"
}
Main.qml
<div>import Felgo 3.0
import QtQuick 2.0
import QtGraphicalEffects 1.0</div>
<div>App {
id: root
licenseKey: “F039627A2C4E281D0EB9C3********************”</div>
<div> onInitTheme: {
Theme.platform = “ios” // always use ios theme</div>
<div> settings.language = “tr_TR”
uiScale: 1 // 1 for Mobiles 2 for Desktops</div>
<div> }</div>
<div> FontLoader {
id:fontAwesome;
source: “../qml/fonts/fontawesome-webfont.ttf”
}</div>
<div> Loader{
active: root.portrait
}</div>
<div> NavigationStack {</div>
<div> Page {
id: rootPage
navigationBarHidden: true
anchors.fill: parent</div>
<div> // MAIN BACKGROUND TEMPLATE
Canvas {
id:secCanvas
anchors.fill: parent
anchors.topMargin: dp(27)
antialiasing: true
renderTarget: Canvas.Image</div>
<div> onPaint: {
var ctx = getContext(“2d”)
ctx.beginPath()
ctx.moveTo(0, 70)
ctx.lineTo(0, root.height / 3)
ctx.lineTo(root.width / 2, root.height / 2.80)
ctx.lineTo(root.width, root.height / 3)
ctx.lineTo(root.width, 70)
ctx.fillStyle = “#9ec428”
ctx.fill()
}
}</div>
<div> // CAPITALBANK LOGO
Image {
id: capitalLogo
fillMode: Image.PreserveAspectFit
source: “../assets/CapitalLogo.png”
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: dp(25)
width: dp(160)
antialiasing: true
clip: true
}</div>
<div> // CAPITAL LOGO GLOW EFFECTS
Glow {
id: logoGlow
anchors.fill: capitalLogo
radius: 6
samples: 6
color: “white”
width: dp(160)
source: capitalLogo
}
}
}
}</div>
<div></div>