Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to enable button while giving input on lineEdit in UI files.
Forum Updated to NodeBB v4.3 + New Features

How to enable button while giving input on lineEdit in UI files.

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 3 Posters 595 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.
  • Y Offline
    Y Offline
    yashi95
    wrote on last edited by
    #1

    How to enable button while giving input on lineEdit in UI files of pyside2

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

      Hi,

      You mean you would like to enable the button once the QLineEdit is not empty anymore ?

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

      Y 1 Reply Last reply
      0
      • Y yashi95

        How to enable button while giving input on lineEdit in UI files of pyside2

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @yashi95
        See void QLineEdit::textEdited(const QString &text), or possibly void QLineEdit::textChanged(const QString &text). Enable/disable your button inside a slot on that according as the text is or is not empty.

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          You mean you would like to enable the button once the QLineEdit is not empty anymore ?

          Y Offline
          Y Offline
          yashi95
          wrote on last edited by
          #4

          @SGaist
          Hi,
          yes

          JonBJ 1 Reply Last reply
          0
          • Y yashi95

            @SGaist
            Hi,
            yes

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @yashi95
            So you'll want to implement what I wrote.

            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