Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Update texts in qml from python backend for Dummies
QtWS25 Last Chance

Update texts in qml from python backend for Dummies

Scheduled Pinned Locked Moved Unsolved Language Bindings
qstringpythonbackendqml binding
3 Posts 2 Posters 816 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.
  • 2 Offline
    2 Offline
    2MJay
    wrote on last edited by
    #1

    Good day, I've been searching the internet for a week now trying to update my my qsTr via python backend and have been unable to. I'm not sure if all the tutorials I've been reading are too complex or Im just too dumb, but it's getting frustrating. I'll be glad if anyone will help me break it down maybe explain what components of the code does for a better understanding. All YouTube and internet codes I've been try to adapt to my work doesn't work due to lack of understanding. Thanks in advance.

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

      Hi and welcome to devnet,

      @2MJay said in Update texts in qml from python backend for Dummies:

      qsTr

      This implies that you are working on the translation of an application. If that's indeed the case, are you trying to update the QTranslator object from the Python side ?

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

      2 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        @2MJay said in Update texts in qml from python backend for Dummies:

        qsTr

        This implies that you are working on the translation of an application. If that's indeed the case, are you trying to update the QTranslator object from the Python side ?

        2 Offline
        2 Offline
        2MJay
        wrote on last edited by
        #3

        Thanks for the reply @SGaist. What I wanted was to update some data (in form of text) from python backend, most of the tutorials I saw were based on using signals and slots. were as I only needed a slot to read without any triggering signal. Though I've been able to finally figure it out and spending this much time actually made me understood it more. I used QTimer to refresh the backend function every half a second.

        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