Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Button Component : Cannot assign to non-existent property "font"

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

    Adderly

    Hey Vplay people, i have this code:

     

    import QtQuick 2.2
    import QtQuick.Controls 1.2
    import Felgo 3.0
    
    
    Item{
        id:pauseMenu
        property alias container:menuContainer
        anchors.fill: parent
    
        Item{
            id:menuContainer
            anchors.fill: parent
    
            Column{
                anchors.centerIn: parent
                Button{
                    id:resumeBtn
                    text:"Resume"
                    onClicked: hudContainer.hidePauseMenu()
                }
                Button{
                    id:exit
                    text:"Exit"
                    font.pixelSize: 10
                    onClicked: {
                        hudContainer.hidePauseMenu()
                        game.state = "front"
                    }
                }
            }
        }
    }

    <!–StartFragment–>and in Button{ font.pixelSize:20;} i get “Cannot assign to non-existent property “font” “.

    I think there is something missing there.

    #7772

    Alex
    Felgo Team
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded