I need to check "LineEdit", to know: is it empty?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Spaliasum

I have a game, and in the begining i got the “lineedit”. In this lineedit Player can write his Username (whatever he/she want). How can i check - is it empty or there i got information of username of the player?
So i need to make a massage, if lineedit is empty - “write your username befor continue”
And if its full, i can change the scene to the first level and play.

how i can do it?

:bust_in_silhouette: Reply From: rakkarage
if _lineEdit.text.empty():