ItemQml

    0

    1

    This code imports the QtQuick 2.0 module, creates an Item object and sets the width, height and color of a Rectangle object.

    import QtQuick 2.0
    Item {
      width:400;height:200
      Rectangle { 
      x:100;y:50
      height:100
      width:height*2
      color:"lightblue"
        function foo()
      {
        console.log("")
        return height*2
      }
      }
    
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.