Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to change value of a Line edit dynamically
Qt 6.12 LTS is out! See what's new in the release blog

How to change value of a Line edit dynamically

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I'n new in python and QT4, so I want some help.

    I create a form in QT4 and compile with pyuic4. it create an form.py

    I want to modify the value of the line edit dynamiclly with code. I put this code in the form.py but never happen:

    in @def retranslateUi(self, Dialog):@
    I put:

    @self.pointStartId.setText(QtGui.QApplication.translate("Dialog", "example", None, QtGui.QApplication.UnicodeUTF8))@

    how can I do that?

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

      Hi and welcome to devnet,

      Please put your code between code tags to make it easier to read.

      You don't share enough of your code to actually allow us to help you. We don't know where you call that line or where to you initialize everything etc...

      As a side not it' Qt, QT stands for Apple QuickTime :)

      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
      • Unsolved