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

How to check if QLineEdit() is empty in PyQt5

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 1.9k 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.
  • Z Offline
    Z Offline
    Zack000
    wrote on 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

    • Login

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