Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Error: Binding loop detected for property "width" .
Forum Update on Monday, May 27th 2025

Error: Binding loop detected for property "width" .

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bhushan_Sure
    wrote on 7 Feb 2019, 05:39 last edited by Bhushan_Sure 2 Jul 2019, 10:51
    #1

    Initially it is running fine but when i expand window ,this error is getting generated which is given as question
    Complete Code is given below

    import QtQuick 2.9
    import QtQuick.Window 2.3
    import QtCharts 2.3
    import QtQuick.Controls 1.4
    import QtQuick.Controls.Styles 1.4
    
    
    // Completed
    Rectangle
    {
        id:top
        visible: true
        width: 400
        height: 600
        color: "black"
    
        property double  x_variable_chrt_1: 0
        property double  y_variable_chrt_1: 0
    
        // ChartView 1
        ChartView
        {
            id:chrt
            height: top.height/3
            width: top.width+18.5
            x:-9.2
            antialiasing: true
            legend.visible: false
            backgroundRoundness: 0
            margins.top: 1
            margins.bottom: 1
            margins.left: 1
            margins.right: 1
            backgroundColor: "black"
    
            ValueAxis
            {
                id:x_axis
                min: 0
                max: 50
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis_right
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            LineSeries
            {
                id:l1
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 3.5
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
            }
    
            LineSeries
            {
                id:l2
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 2
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
            }
    
            LineSeries
            {
                id:l3
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                style: Qt.DotLine
            }
        }
    
        // ChartView 2
        ChartView
        {
            id:chrt2
            height: top.height/3
            width: top.width+18.5
            x:-9.2
            antialiasing: true
            anchors.top: chrt.bottom
            legend.visible: false
            backgroundRoundness: 0
            margins.top: 15
            margins.bottom: 1
            margins.left: 1
            margins.right: 1
            backgroundColor: "black"
    
            ValueAxis
            {
                id:x_axis_2
                min: 0
                max: 50
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis_2
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis_right_2
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            LineSeries
            {
                id:l1_2
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 3.5
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
            }
    
            LineSeries
            {
                id:l2_2
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 2
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
            }
    
            LineSeries
            {
                id:l3_2
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                style: Qt.DotLine
            }
        }
    
        // ChartView 3
        ChartView
        {
            id:chrt3
            height: top.height/3
            width: top.width+18.5
            anchors.top: chrt2.bottom
            x:-9.2
            antialiasing: true
            legend.visible: false
            backgroundRoundness: 0
            margins.top: 15
            margins.bottom: 1
            margins.left: 1
            margins.right: 1
            backgroundColor: "black"
    
            ValueAxis
            {
                id:x_axis_3
                min: 0
                max: 50
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis_3
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            ValueAxis
            {
                id:y_axis_right_3
                min: 0
                max: 5
                tickCount: 6
                visible: false
            }
    
            LineSeries
            {
                id:l1_3
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 3.5
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
            }
    
            LineSeries
            {
                id:l2_3
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                width: 2
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
            }
    
            LineSeries
            {
                id:l3_3
                axisX: x_axis
                axisY: y_axis
                color: "#969FB2"
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                style: Qt.DotLine
            }
        }
    
    }
    
    

    Any idea why this error ?

    B 1 Reply Last reply 7 Feb 2019, 10:26
    0
    • B Bhushan_Sure
      7 Feb 2019, 05:39

      Initially it is running fine but when i expand window ,this error is getting generated which is given as question
      Complete Code is given below

      import QtQuick 2.9
      import QtQuick.Window 2.3
      import QtCharts 2.3
      import QtQuick.Controls 1.4
      import QtQuick.Controls.Styles 1.4
      
      
      // Completed
      Rectangle
      {
          id:top
          visible: true
          width: 400
          height: 600
          color: "black"
      
          property double  x_variable_chrt_1: 0
          property double  y_variable_chrt_1: 0
      
          // ChartView 1
          ChartView
          {
              id:chrt
              height: top.height/3
              width: top.width+18.5
              x:-9.2
              antialiasing: true
              legend.visible: false
              backgroundRoundness: 0
              margins.top: 1
              margins.bottom: 1
              margins.left: 1
              margins.right: 1
              backgroundColor: "black"
      
              ValueAxis
              {
                  id:x_axis
                  min: 0
                  max: 50
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis_right
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              LineSeries
              {
                  id:l1
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 3.5
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
              }
      
              LineSeries
              {
                  id:l2
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 2
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
              }
      
              LineSeries
              {
                  id:l3
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                  style: Qt.DotLine
              }
          }
      
          // ChartView 2
          ChartView
          {
              id:chrt2
              height: top.height/3
              width: top.width+18.5
              x:-9.2
              antialiasing: true
              anchors.top: chrt.bottom
              legend.visible: false
              backgroundRoundness: 0
              margins.top: 15
              margins.bottom: 1
              margins.left: 1
              margins.right: 1
              backgroundColor: "black"
      
              ValueAxis
              {
                  id:x_axis_2
                  min: 0
                  max: 50
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis_2
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis_right_2
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              LineSeries
              {
                  id:l1_2
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 3.5
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
              }
      
              LineSeries
              {
                  id:l2_2
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 2
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
              }
      
              LineSeries
              {
                  id:l3_2
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                  style: Qt.DotLine
              }
          }
      
          // ChartView 3
          ChartView
          {
              id:chrt3
              height: top.height/3
              width: top.width+18.5
              anchors.top: chrt2.bottom
              x:-9.2
              antialiasing: true
              legend.visible: false
              backgroundRoundness: 0
              margins.top: 15
              margins.bottom: 1
              margins.left: 1
              margins.right: 1
              backgroundColor: "black"
      
              ValueAxis
              {
                  id:x_axis_3
                  min: 0
                  max: 50
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis_3
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              ValueAxis
              {
                  id:y_axis_right_3
                  min: 0
                  max: 5
                  tickCount: 6
                  visible: false
              }
      
              LineSeries
              {
                  id:l1_3
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 3.5
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+0 }
              }
      
              LineSeries
              {
                  id:l2_3
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  width: 2
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+10; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+20; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+30; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+0 }
                  XYPoint { x: x_variable_chrt_1+40; y: y_variable_chrt_1+5 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+5 }
              }
      
              LineSeries
              {
                  id:l3_3
                  axisX: x_axis
                  axisY: y_axis
                  color: "#969FB2"
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+3.34 }
                  XYPoint { x: x_variable_chrt_1+0; y: y_variable_chrt_1+1.67 }
                  XYPoint { x: x_variable_chrt_1+50; y: y_variable_chrt_1+1.67 }
                  style: Qt.DotLine
              }
          }
      
      }
      
      

      Any idea why this error ?

      B Offline
      B Offline
      Bhushan_Sure
      wrote on 7 Feb 2019, 10:26 last edited by
      #2

      @dheerendra @LeLev @Nikhilesh-N @J-Hilk Anything wrong i have done here ?

      J.HilkJ ODБOïO 2 Replies Last reply 7 Feb 2019, 10:55
      0
      • B Bhushan_Sure
        7 Feb 2019, 10:26

        @dheerendra @LeLev @Nikhilesh-N @J-Hilk Anything wrong i have done here ?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 7 Feb 2019, 10:55 last edited by
        #3

        Hi @Bhushan_Sure
        sadly I can't test your example, as soon as a add the 2nd Chartview, the application crashes. Works fine with 1, but not with 2 or more.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        B 1 Reply Last reply 7 Feb 2019, 11:02
        1
        • B Bhushan_Sure
          7 Feb 2019, 10:26

          @dheerendra @LeLev @Nikhilesh-N @J-Hilk Anything wrong i have done here ?

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on 7 Feb 2019, 10:57 last edited by ODБOï 2 Jul 2019, 10:58
          #4

          @Bhushan_Sure

          you can use layouts to get rid of Binding loop

          import QtQuick 2.12
          import QtQuick.Window 2.2
          import QtQuick.Controls 2.4
          import QtQuick.Window 2.3
          import QtQuick.Layouts 1.3
          import QtCharts 2.3
          import QtQuick.Controls.Styles 1.4
          
          ApplicationWindow {
              visible: true
              width: 640
              height: 480
          
             Component{
                 id:c
              ChartView {
          
                  antialiasing: true
                      ValueAxis {
                      id: axisX
                      min: 0
                      max: 10
                  }
                  ValueAxis {
                      id: axisY
                      min: 0
                      max: 1
                  }
          
                  LineSeries{
                      id:vals
                      axisX: axisX
                      axisY: axisY
                      visible: true
                      width:3
                      capStyle:  Qt.DashDotDotLine
                  }
          
              }
             }
          
             ColumnLayout{
                 anchors.fill: parent
              Loader{
                  sourceComponent: c
                  Layout.preferredHeight: parent.height/3
                  Layout.preferredWidth: parent.width
              }
              Loader{
                  sourceComponent: c
                  Layout.preferredHeight: parent.height/3
                  Layout.preferredWidth: parent.width
              }
              Loader{
                  sourceComponent: c
                  Layout.preferredHeight: parent.height/3
                  Layout.preferredWidth: parent.width
              }
             }
          }
          
          
          B 1 Reply Last reply 7 Feb 2019, 11:03
          2
          • J.HilkJ J.Hilk
            7 Feb 2019, 10:55

            Hi @Bhushan_Sure
            sadly I can't test your example, as soon as a add the 2nd Chartview, the application crashes. Works fine with 1, but not with 2 or more.

            B Offline
            B Offline
            Bhushan_Sure
            wrote on 7 Feb 2019, 11:02 last edited by
            #5

            @J.Hilk is it something wrong i have coded ? or anything you could suggest me ?

            1 Reply Last reply
            0
            • ODБOïO ODБOï
              7 Feb 2019, 10:57

              @Bhushan_Sure

              you can use layouts to get rid of Binding loop

              import QtQuick 2.12
              import QtQuick.Window 2.2
              import QtQuick.Controls 2.4
              import QtQuick.Window 2.3
              import QtQuick.Layouts 1.3
              import QtCharts 2.3
              import QtQuick.Controls.Styles 1.4
              
              ApplicationWindow {
                  visible: true
                  width: 640
                  height: 480
              
                 Component{
                     id:c
                  ChartView {
              
                      antialiasing: true
                          ValueAxis {
                          id: axisX
                          min: 0
                          max: 10
                      }
                      ValueAxis {
                          id: axisY
                          min: 0
                          max: 1
                      }
              
                      LineSeries{
                          id:vals
                          axisX: axisX
                          axisY: axisY
                          visible: true
                          width:3
                          capStyle:  Qt.DashDotDotLine
                      }
              
                  }
                 }
              
                 ColumnLayout{
                     anchors.fill: parent
                  Loader{
                      sourceComponent: c
                      Layout.preferredHeight: parent.height/3
                      Layout.preferredWidth: parent.width
                  }
                  Loader{
                      sourceComponent: c
                      Layout.preferredHeight: parent.height/3
                      Layout.preferredWidth: parent.width
                  }
                  Loader{
                      sourceComponent: c
                      Layout.preferredHeight: parent.height/3
                      Layout.preferredWidth: parent.width
                  }
                 }
              }
              
              
              B Offline
              B Offline
              Bhushan_Sure
              wrote on 7 Feb 2019, 11:03 last edited by
              #6

              @LeLev Ok I will try this code to run

              B 1 Reply Last reply 7 Feb 2019, 11:32
              0
              • B Bhushan_Sure
                7 Feb 2019, 11:03

                @LeLev Ok I will try this code to run

                B Offline
                B Offline
                Bhushan_Sure
                wrote on 7 Feb 2019, 11:32 last edited by Bhushan_Sure 2 Jul 2019, 11:33
                #7

                @dheerendra @LeLev @J-Hilk
                Hi i solved the issued
                Thank you so much for your Valuable inputs.

                Given code is :-

                import QtQuick 2.9
                import QtQuick.Window 2.3
                
                Window
                {
                    visible: true
                    width: 400
                    height: 600
                    title: qsTr("Hello World")
                
                    Loader
                    {
                        id:l1
                        source: "Graph_1.qml"
                        height: parent.height/3
                        width: parent.width
                    }
                
                    Loader
                    {
                        id:l2
                        source: "Graph_2.qml"
                        height: parent.height/3
                        width: parent.width
                        anchors.top: l1.bottom
                    }
                
                    Loader
                    {
                        id:l3
                        source: "Graph_3.qml"
                        height: parent.height/3
                        width: parent.width
                        anchors.top: l2.bottom
                    }
                
                }
                

                And Here Graph_1,Graph_2,Graph_3 are invidual graphs that i have to show.
                that is 3 chartview.

                1 Reply Last reply
                2

                1/7

                7 Feb 2019, 05:39

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved