Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-02 Thread Mailing List SVR
Il 31/12/2011 16:01, Linos ha scritto: has anyone tried this? for me the cpp example is identical to the python one (qt 4.7.4, pyqt 4.8.5, ubuntu oneiric packages) Nicola El 28/12/11 18:16, Linos escribió: Hi, after Qt upgrade to 4.8.0 in my machine i have been getting problems

[PyQt] QTableView with checkbox headers

2012-01-02 Thread Sherif Shehab Aldin
Hi, I am trying to have a QTableView of checkboxes, so I can use them for row selections... I have managed to do that, now I want the header Itself to be checkbox so I can check/Uncheck All. I have been looking for days, but couldn't get to do it. I tried to use setHeaderData to the model, but

Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-02 Thread Linos
thanks for test it. have you tried scrolling the table? i get strange visual problems with the vertical header when i scroll the table. Regards, Miguel Angel. El 02/01/12 10:44, Mailing List SVR escribió: Il 31/12/2011 16:01, Linos ha scritto: has anyone tried this? for me the cpp example

Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-02 Thread Mailing List SVR
Il 02/01/2012 13:03, Linos ha scritto: thanks for test it. have you tried scrolling the table? i get strange visual problems with the vertical header when i scroll the table. yes I tryed and no strange visual effect here with both c++ and python version, both seems good, Nicola Regards,

[PyQt] Question about catching and passing on mouse events in a QTableWidget

2012-01-02 Thread Steve Zatz
I have what would seem to be a simple problem but have not been able to solve and any help would be appreciated. I have a table object based on QTableWidget that has a slot for its cellClicked signal. I would like to know whether various cells in the table are clicked with a left or right mouse

Re: [PyQt] Question about catching and passing on mouse events in a QTableWidget

2012-01-02 Thread Steve Zatz
OK, it turned out to be straightforward to propagate the event. def mousePressEvent(self, e): self.leftpressed = e.button() == Qt.LeftButton super(Table, self).mousePressEvent(e) ___ PyQt mailing listPyQt@riverbankcomputing.com