Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Launching Issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15610

    Morgan

    So I’m launching this and telling it to change the opening screen to say Welcome instead it keeps saying V-play and not in the color I’ve specified. What am I doing wrong? I also added a button to the main page but that isn’t showing up either!

    Main:

    import Felgo 3.0

    import QtQuick 2.0
    
    
    GameWindow {
        id: gameWindow
    
    
        screenWidth: 960
        screenHeight: 640
    
    
        Scene {
            id: scene
    
    
            // the "logical size" - the scene content is auto-scaled to match the GameWindow size
            width: 480
            height: 320
    
    
       Rectangle {
           anchors.fill: scene.gameWindowAnchorItem
           color: "#324566"
       }
    
    
        Text {
    
    
        text: "Welcome"
        color: "white"
        anchors.horizontalCenter: scene.gameWindowAnchorItem.horizontalCenter
        anchors.top: scene.gameWindowAnchorItem.top
            }
    
    
            MyButton {
                    anchors.centerIn: scene
            }
        }
    
    
    }
    
    
    
    #15611

    Günther
    Felgo Team

    Hi!

    Your color and text changes look correct – you should see the changes when running your app. Which platform are you working/testing on?

    To avoid issues with a previous builds you can perform the following steps for clean-up:
    – delete the build directory (by default the “build-{project}-{platform}-Debug” folder in the same directory as the project folder)
    – right click on the project in Qt Creator and select “Clean”, then right-click again and select “Run qmake”
    – Delete installed version from your device in case you are testing on e.g. your phone or tablet

    This makes sure you get a fresh application build from scratch.

    Does this help?

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.