Look at the textChanged() signal - it carries a parameter which contains the current text of the lineedit. You can check the text and if it is equal to the "password" of your choice, enable the button.
Look at the textChanged() signal - it carries a parameter which contains the current text of the lineedit. You can check the text and if it is equal to the "password" of your choice, enable the button.
Krish (5th March 2008)
Hello! Wysota,
Thanks again i used the textChanged() property & its working! But whever i use "Backspace" Key from the keyboard to cancel the selection it is not working properly.
I have used Clear button to clear() the LineEdit's text(), if user wishes to clear his selection. But whenever i use "Backspace" key to do the same, the text disappers but i dont think it clear's the text() property as clear() function does because the slot is not called in that case.
Can you please let me know where am i making mistake?--> Thanks in Advance.![]()
I have no idea what you are saying... Could you provide some code to demonstrate what you mean?
Thank you Sir for helping me out, but i was able to solve it.
Best regards.
Last edited by Krish; 5th March 2008 at 14:57.
Bookmarks