Results 1 to 3 of 3

Thread: problem in invoking event of QDateEdit embedded in QTableWidget cell

  1. #1
    Join Date
    Jan 2011
    Posts
    23
    Qt products
    Platforms
    Windows

    Question problem in invoking event of QDateEdit embedded in QTableWidget cell

    i have added QTimeEdit in a QTableWidget cell using setCellWidget
    its name is dt_d

    Now i want to write a function on which will be triggered on dateChanged event

    but the problem i am facing is its not accepting dateChanged trigger as well as its not accepting itemChanged event of QTableWidget

    can some plz tell me how can i write a function which will be triggered when i change d date in QDateEdit which is embedded in a cell of a QTableWidget

    ITS A BIT URGENT
    PLZ HELP

    THANX IN ADVANCE
    Last edited by ad3d; 21st January 2011 at 07:33.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: problem in invoking event of QDateEdit embedded in QTableWidget cell

    i have added QTimeEdit in a QTableWidget cell using setCellWidget
    how can i write a function which will be triggered when i change d date in QDateEdit which is embedded in a cell of a QTableWidget
    Which is it, a QTimeEdit or a QDateEdit? You would not expect a QTimeEdit to emit the dateChanged() signal because it cannot change the date.

    All you need to do is connect() the signal from your widget to a slot. What have you actually tried? Cut and paste some code snippets.

  3. #3
    Join Date
    Jan 2011
    Posts
    23
    Qt products
    Platforms
    Windows

    Default Re: problem in invoking event of QDateEdit embedded in QTableWidget cell

    it is a QDateEdit

    i am trying to create a function like

    def on_dt_d_dateChanged(self):
    print 'Date Changed'

    its not working as i have set QDateEdit in QTableWidget cell

    if i try to use same function on other QDateEdit which i have placed in a group container seperately it works...

    def on_dob_date_dateChanged(self):
    print 'Date Changed'

    where dob_date is QDateEdit object

Similar Threads

  1. Replies: 5
    Last Post: 11th January 2011, 10:52
  2. Replies: 1
    Last Post: 3rd May 2010, 09:25
  3. Qt embedded - gpio event
    By steffen in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 24th July 2009, 15:44
  4. QTableWidget + QDateEdit + Delegates
    By Cykus in forum Newbie
    Replies: 1
    Last Post: 8th June 2008, 00:43
  5. Problem with receiving events from QDateEdit
    By gunhelstr in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 11:21

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.