Results 1 to 7 of 7

Thread: Problem with enabling QPushButton!

Threaded View

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

    Unhappy Problem with enabling QPushButton!

    Hello! Friends,
    I am planning to design GUI wherein unless any user enters in QLineEdit a valid input it shouldn't enable one of the pushbuttons say Calculate. In the designer i have disabled the Calculate button. I have also set the inputMask in the designer to accept only 1-9 integers. I have disabled the button as soon as the calculate starts.

    After which i used QLineEdit's "textChanged( const QString &)" property to enable the button and it worked properly, but it even enabled the button if "EmptyString" or anyother string which is inserted to LineEdit even if those are not displayed OR when Clear function is used which clears LineEdit's data.

    Can anyone please suggest me which of the QLineEdit's property like ::isModified(), ::selectedText() or any other has to be used to solve my problem?

    I will be obliged if helped.---->Thanks in Advance.
    Last edited by Krish; 4th March 2008 at 16:29.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.