Results 1 to 3 of 3

Thread: QDate dateChanged() signal

  1. #1
    Join Date
    Nov 2010
    Location
    planet earth
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDate dateChanged() signal

    hi,

    i want to edit the date in my database using the QDateEdit inside the QTableWidget but the signal dateChanged(QDate) wont let me finish editing. it will automatically send the signal even i am still selecting the month or the day or the year.

    why???

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDate dateChanged() signal

    It's because dateChanged() is emitted whenever you change the date. Look at editingFinished() instead.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Nov 2010
    Location
    planet earth
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QDate dateChanged() signal

    edittingFinished() error --- Object::connect: No such signal QDateEdit::edittingFinished(QDate)

    Quote Originally Posted by xeroblast View Post
    edittingFinished() error --- Object::connect: No such signal QDateEdit::edittingFinished(QDate)
    my bad wrong spelling... editingFinished() -- single 't' only...

Similar Threads

  1. can't get Qdate
    By mmm286 in forum Newbie
    Replies: 1
    Last Post: 4th March 2010, 09:25
  2. QDate next day
    By AlexD in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2010, 22:40
  3. Regarding QDate?
    By qtlinuxnewbie in forum Newbie
    Replies: 4
    Last Post: 5th February 2010, 07:02
  4. Replies: 2
    Last Post: 8th July 2006, 17:16
  5. QDate Help pls
    By munna in forum Qt Programming
    Replies: 6
    Last Post: 8th May 2006, 06:50

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.