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. Qt Gui update from TCL Intepreter

Qt Gui update from TCL Intepreter

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 946 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have a QT GUI , and I have TCL application that executes the command and updates the database . The QT GUI calls the TCL command , by entering appropriate command in one of command windows of QT GUI . The command is window is derived from QLineEdit. When the command is entered on this command window , then a slot is called to execute the TCL command

    I have a window of another window of inherited from QGraphicsView. I have a TCL command place_object that changes the coordinates of the items in database of the items displayed in QGraphicsView

    Now when the command entered on command window is executed successfully the QGraphicsView gets updated/repainted automatically I cannot see any code of update called specially QGraphicsView

    I am unable to get how does QGraphicsView gets updated/repainted automatically Need help to understand how does QGraphicsView gets updated automatically

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

      Hi,

      If you modify any item form your scene, this will trigger a request to update the said scene. You don't have to do anything special.

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

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        Also does QT GUI update internally involves the thread

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

          The main thread AKA the GUI thread, like for any application

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

          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