Results 1 to 7 of 7

Thread: Problem with enabling QPushButton!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem with enabling QPushButton!

    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.

  2. The following user says thank you to wysota for this useful post:

    Krish (5th March 2008)

  3. #2
    Join Date
    Feb 2008
    Posts
    74
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Question Re: Problem with enabling QPushButton!

    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.

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem with enabling QPushButton!

    I have no idea what you are saying... Could you provide some code to demonstrate what you mean?

  5. #4
    Join Date
    Feb 2008
    Posts
    74
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Smile Re: Problem with enabling QPushButton!

    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.

Similar Threads

  1. QPixmap in QPushButton size problem
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 22nd January 2008, 12:50
  2. QPushButton problem
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 20th August 2007, 21:02
  3. QPushbutton problem
    By amulya in forum Qt Programming
    Replies: 5
    Last Post: 30th August 2006, 08:11
  4. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.