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 check if QLineEdit() is empty in PyQt5
Forum Update on Monday, May 27th 2025

How to check if QLineEdit() is empty in PyQt5

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 1.8k 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.
  • Z Offline
    Z Offline
    Zack000
    wrote on 23 Oct 2018, 23:07 last edited by Zack000
    #1

    #PyQt5 #Python
    i have a QMainWindow that hold 7 QLineEdit() and a QPushButton.
    i'm trying to set a FOR loop for the QPushButton(OnClick_Proceedbtn) that checks if those QLineEdit() are empty or not.
    and if yes, change the empty QLineEdit() to red(background).

    Thank you in Advance.

    1 Reply Last reply
    0

    1/1

    23 Oct 2018, 23:07

    • Login

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