[PyQt] problem in invoking event of QDateEdit embedded in QTableWidget cell
Nick Gaens
mail at nickgaens.com
Fri Jan 21 11:57:38 GMT 2011
Something like:
dt_d = new QTimeEdit()
dt_d.timeChanged.connect(self.onTimeChanged)
myTableWidget.setCellWidget(row, col, dt_d)
...
def onTimeChanged(self, time):
print time
Btw, I assume you mean
'timeChanged<http://doc.qt.nokia.com/4.7/qdatetimeedit.html#timeChanged>'
instead of 'dateChanged' when using a QTimeEdit :-)?
On Fri, Jan 21, 2011 at 08:31, ad3d <alhaddeshpande at gmail.com> wrote:
>
> 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
> --
> View this message in context:
> http://old.nabble.com/problem-in-invoking-event-of-QDateEdit-embedded-in-QTableWidget-cell-tp30726350p30726350.html
> Sent from the PyQt mailing list archive at Nabble.com.
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Nick Gaens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110121/4e27d9ae/attachment.html>
More information about the PyQt
mailing list