Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] Pass string from C++ to QML

    General and Desktop
    1
    2
    1124
    Loading More Posts
    • 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.
    • J
      jgkaiser last edited by

      I am trying to pass a simple string from C++ to QML. I want to show the string in a simple TextInput in QML. I have looked around for similar topics but have not found anything so far that could help me. How do I approach this?

      1 Reply Last reply Reply Quote 0
      • J
        jgkaiser last edited by

        Thank you for your post.

        I wanted to display a string in an Application Window. I got it to work by using Q_INVOKABLE.

        Thank you for your time and help.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post