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. Text File as a 'user interface' for QT GUI
Forum Updated to NodeBB v4.3 + New Features

Text File as a 'user interface' for QT GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 483 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.
  • S Offline
    S Offline
    Shahmisufi
    wrote on last edited by
    #1

    Hi guys,

    In Qt, we have known about Input Widgets such as QSpinBox, QSlider, QScrollBar,QSpinBox, etc.

    There are also Displaying Widgets such as QLCDNumber and QProgressBar.

    As we are changing the value of the Input Widget, we can show the resulting values using the Displaying Widgets. In other words, the input widgets are controlling the value of displaying widgets

    All the process above is after the QT program has been built.

    Instead...

    Can I use a 'Text File' to control the Displaying Widget? In other words, I insert a value... let say, "45" inside the notepad and save it as txt inside the resource file. After the QT program has built, the LCDNumber will display number "45", or the ProgressBar will display the position of 45%.

    Thanks for your assist, guys!

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      http://doc.qt.io/qt-5/qtextstream.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1

      • Login

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