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. [SOLVED] Pass string from C++ to QML

[SOLVED] Pass string from C++ to QML

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 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.
  • J Offline
    J Offline
    jgkaiser
    wrote on last edited by
    #1

    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
    0
    • J Offline
      J Offline
      jgkaiser
      wrote on last edited by
      #2

      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
      0

      • Login

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