Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hai Friends. Today i am facing Small pblm(HOW TO SEND THE .CPP FILE VARIABLE TO .QML FILE) PLZ HELP ME

Hai Friends. Today i am facing Small pblm(HOW TO SEND THE .CPP FILE VARIABLE TO .QML FILE) PLZ HELP ME

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 6 Posters 1.2k 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.
  • V Offline
    V Offline
    Vinay Kumar pusuluri
    wrote on last edited by JKSH
    #1

    When Using the QML(Application) file in Qt Widget Application using the QQuickView control. In QtWidget Application (.cpp)file is There ,In That File I am using One Variable.According to that Variable QML(LOAD Application) Application that Value should be changed. So Here My Question is how to send the variable in(.cpp )file to .qml File.plz help out to me.
    thanks

    JonBJ Pablo J. RoginaP 2 Replies Last reply
    0
    • V Vinay Kumar pusuluri

      When Using the QML(Application) file in Qt Widget Application using the QQuickView control. In QtWidget Application (.cpp)file is There ,In That File I am using One Variable.According to that Variable QML(LOAD Application) Application that Value should be changed. So Here My Question is how to send the variable in(.cpp )file to .qml File.plz help out to me.
      thanks

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Vinay-Kumar-pusuluri
      Is this the same as your new post https://forum.qt.io/topic/92262/hello-friends-i-am-facing-small-issue-can-u-suggest-me ?

      1 Reply Last reply
      2
      • KillerSmathK Offline
        KillerSmathK Offline
        KillerSmath
        wrote on last edited by
        #3

        @Vinay-Kumar-pusuluri
        Read more about Cpp and Qml interation:

        Choosing the Correct Integration Method Between C++ and QML
        Interact - QML and C++ Method 1
        Interact - QML and C++ Method 2

        @Computer Science Student - Brazil
        Web Developer and Researcher
        “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

        1 Reply Last reply
        3
        • V Vinay Kumar pusuluri

          When Using the QML(Application) file in Qt Widget Application using the QQuickView control. In QtWidget Application (.cpp)file is There ,In That File I am using One Variable.According to that Variable QML(LOAD Application) Application that Value should be changed. So Here My Question is how to send the variable in(.cpp )file to .qml File.plz help out to me.
          thanks

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Vinay-Kumar-pusuluri as already stated by @JonB please don't double post your issue. You may need to wait some time till somebody from the community can answer... Thanks.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Unrelated to your issue, please change the topic title to something meaningful. It’s not a field to write half your question.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            JKSHJ 1 Reply Last reply
            3
            • SGaistS SGaist

              Hi,

              Unrelated to your issue, please change the topic title to something meaningful. It’s not a field to write half your question.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @SGaist said in Hai Friends. Today i am facing Small pblm(HOW TO SEND THE .CPP FILE VARIABLE TO .QML FILE) PLZ HELP ME:

              Unrelated to your issue, please change the topic title to something meaningful. It’s not a field to write half your question.

              @Vinay-Kumar-pusuluri, please read and follow https://meta.stackexchange.com/questions/10647/how-do-i-write-a-good-title/10648

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              V 1 Reply Last reply
              2
              • V Offline
                V Offline
                Vinay Kumar pusuluri
                wrote on last edited by
                #7

                I am Really Sorry to post This Question twise...Sorry to All

                1 Reply Last reply
                0
                • JKSHJ JKSH

                  @SGaist said in Hai Friends. Today i am facing Small pblm(HOW TO SEND THE .CPP FILE VARIABLE TO .QML FILE) PLZ HELP ME:

                  Unrelated to your issue, please change the topic title to something meaningful. It’s not a field to write half your question.

                  @Vinay-Kumar-pusuluri, please read and follow https://meta.stackexchange.com/questions/10647/how-do-i-write-a-good-title/10648

                  V Offline
                  V Offline
                  Vinay Kumar pusuluri
                  wrote on last edited by
                  #8

                  @JKSH I am sorry for this question was posted twice.
                  My question is I am taking one qt widget application. In that application I take one
                  quickwidget and line edit and pushbutton in my .ui file.
                  In my . Cpp file I have done like this
                  ui->quickwidget->setsource("mygraph.qml");
                  Whenever I am clicking the pushbutton that line edit value should be go to the qml.
                  I am strucked at the that line edit data should be going to the . Qml file.
                  I am unable to handle this can u suggest me

                  JKSHJ 1 Reply Last reply
                  0
                  • V Vinay Kumar pusuluri

                    @JKSH I am sorry for this question was posted twice.
                    My question is I am taking one qt widget application. In that application I take one
                    quickwidget and line edit and pushbutton in my .ui file.
                    In my . Cpp file I have done like this
                    ui->quickwidget->setsource("mygraph.qml");
                    Whenever I am clicking the pushbutton that line edit value should be go to the qml.
                    I am strucked at the that line edit data should be going to the . Qml file.
                    I am unable to handle this can u suggest me

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    Hi @Vinay-Kumar-pusuluri,

                    Apology accepted :-) Don't worry, we are happy to help. But in the future, do try to avoid posting twice, and give your posts good titles.

                    Whenever I am clicking the pushbutton that line edit value should be go to the qml.
                    I am strucked at the that line edit data should be going to the . Qml file.

                    Do you know how to run a function each time you click the push button?

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    1

                    • Login

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