Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How can i update the values repeadedly?
Forum Updated to NodeBB v4.3 + New Features

How can i update the values repeadedly?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 689 Views 1 Watching
  • 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.
  • KourpetisK Offline
    KourpetisK Offline
    Kourpetis
    wrote on last edited by
    #1

    please help me. i am completle lost here. totaly new to qt.

    I have this ui file and I want the lcd values to be updated every 100ms from the last line of 4 files :
    value1.txt
    value2.txt
    value3.txt
    message_box.txt

    never end. just update every 100ms. I don't care if it is in C++, python, Greek, English, Marcian. Just update the values from the last line of the files.

    please help.

    this is the code :

    //<?xml version="1.0" encoding="UTF-8"?>
    <ui version="4.0">
     <class>MainWindow</class>
     <widget class="QMainWindow" name="MainWindow">
      <property name="geometry">
       <rect>
        <x>0</x>
        <y>0</y>
        <width>460</width>
        <height>320</height>
       </rect>
      </property>
      <property name="windowTitle">
       <string>MainWindow</string>
      </property>
      <widget class="QWidget" name="centralwidget">
       <widget class="QLCDNumber" name="value3">
        <property name="geometry">
         <rect>
          <x>330</x>
          <y>160</y>
          <width>121</width>
          <height>101</height>
         </rect>
        </property>
       </widget>
       <widget class="QLCDNumber" name="value2">
        <property name="geometry">
         <rect>
          <x>170</x>
          <y>160</y>
          <width>121</width>
          <height>101</height>
         </rect>
        </property>
       </widget>
       <widget class="QLCDNumber" name="value1">
        <property name="geometry">
         <rect>
          <x>20</x>
          <y>160</y>
          <width>121</width>
          <height>101</height>
         </rect>
        </property>
       </widget>
       <widget class="QLabel" name="value1_lb">
        <property name="geometry">
         <rect>
          <x>70</x>
          <y>130</y>
          <width>55</width>
          <height>16</height>
         </rect>
        </property>
        <property name="text">
         <string>value1</string>
        </property>
       </widget>
       <widget class="QLabel" name="value2_lb">
        <property name="geometry">
         <rect>
          <x>190</x>
          <y>130</y>
          <width>81</width>
          <height>21</height>
         </rect>
        </property>
        <property name="text">
         <string>value2</string>
        </property>
       </widget>
       <widget class="QLabel" name="Value3_lb">
        <property name="geometry">
         <rect>
          <x>350</x>
          <y>130</y>
          <width>91</width>
          <height>21</height>
         </rect>
        </property>
        <property name="text">
         <string>Value3</string>
        </property>
       </widget>
       <widget class="QTextBrowser" name="message_box">
        <property name="geometry">
         <rect>
          <x>10</x>
          <y>10</y>
          <width>441</width>
          <height>121</height>
         </rect>
        </property>
       </widget>
      </widget>
      <widget class="QMenuBar" name="menubar">
       <property name="geometry">
        <rect>
         <x>0</x>
         <y>0</y>
         <width>460</width>
         <height>26</height>
        </rect>
       </property>
      </widget>
      <widget class="QStatusBar" name="statusbar"/>
     </widget>
     <resources/>
     <connections/>
    </ui>
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Take a look at:

      • QTimer for the "repeating never ending part".
      • QFile for reading your files.

      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
      2

      • Login

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