Forums

OverviewV-Play 1 SupportQT emulation Layer crashed (1:0) › Reply To: QT emulation Layer crashed (1:0)

OverviewV-Play 1 SupportQT emulation Layer crashed (1:0) › Reply To: QT emulation Layer crashed (1:0)
#5785

farhanx

The designer is very strange , whatever i am designing it does not reflect it on execution. For e.g making font italic , making gradeint rectangle are not getting render. Also how can i add onclick function on rectangle , it says property is unidentified

 

import QtQuick 1.1
import VPlay 1.0


SceneBase {
    id: farhanScene

    Text {
        x: -167
        y: -3
        text: "Something that you want to show"
        font.italic: true
        font.pointSize: 15
        opacity: 1
        verticalAlignment: Text.AlignVCenter
        styleColor: "#cc1d1d"
        font.bold: true
        anchors.verticalCenterOffset: 9
        anchors.horizontalCenterOffset: 6
        color: "white"
        anchors.centerIn: parent
    }

    Rectangle {
        id: rectangle1
        x: -59
        y: -67
        width: 101
        height: 19
        radius: 6
        transformOrigin: Item.Center
        opacity: 1
        smooth: true
        anchors.left: parent.left
        anchors.leftMargin: -59
        anchors.right: parent.right
        anchors.rightMargin: -42



        gradient: Gradient {
            GradientStop {
                position: 0
                color: "#ffffff"
            }

            GradientStop {
                position: 0.090
                color: "#ffffff"
            }

            GradientStop {
                position: 0.980
                color: "#715f5f"
            }

            GradientStop {
                position: 1
                color: "#000000"
            }
        }

        TextInput {
            id: text_input1
            x: 32
            y: 5
            width: 31
            height: 20
            text: qsTr("Back")
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 12
        }

    }

    /*
    // back button to leave scene
    SimpleButton {
        text: "Back to menu"
        anchors.right: parent.right
        onClicked: backPressed()
    }
*/


}

 

 

 

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support