Re: [PyQt] Bugs galore in QAbstractTableModel???

2010-11-29 Thread Wolfgang Rohdewald
On Sonntag 28 November 2010, Steve Borho wrote: Indeed, I found these when I started using the file, and checked in a fixed version here: http://bitbucket.org/tortoisehg/thg/src/tip/tortoisehg/hgqt/mo deltest.py here are some more bug fixes for editable models. The patch is against your

Re: [PyQt] textedit example

2010-11-29 Thread Hans-Peter Jansen
Ping On Thursday 04 November 2010, 23:42:33 Hans-Peter Jansen wrote: Hi Phil et al., since I was in the mood last night, here's the textedit example for the collection. This is a simple richtext editor in about 26k code. I'm inclined to say, it's fullblown, but they did the easy parts

[PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Ian
Hi Everyone I have four bugs to report. Where should they be reported? 1) The PyQt documentation contains a lot of things like this: at http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qabstractitemview.html#selectionChanged quote QAbstractItemView.selectionChanged (self,

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Phil Thompson
On Mon, 29 Nov 2010 12:42:53 +, Ian hobso...@gmail.com wrote: Hi Everyone I have four bugs to report. Where should they be reported? PyQt bugs should be reported on this mailing list. Qt bugs should be reported to Nokia. 1) The PyQt documentation contains a lot of things like this: at

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Andreas Pakulat
On 29.11.10 12:42:53, Ian wrote: 2) When you call setSortingEnabled(True) on a QTreeView the model's sort routine is called twice. No sort is necessary in my use case, because the data is already sorted correctly. However I would accept a single sort column 0, ascending. Besides,

[PyQt] complete webkit examples collection

2010-11-29 Thread Hans-Peter Jansen
to revert any changes by highlighting an empty element. From the statistical department, it's worth to note, that all scripts together with all auxiliary source files (ui, resources) are about the same size as the single jquery module used by fancybrowser! Enjoy, Pete webkit-20101129.tar.bz2

[PyQt] fixes for scribble issues

2010-11-29 Thread Hans-Peter Jansen
Dear Phil, examples/widgets/scribble.py suffers from a couple of issues at the moment. Most importantly, QtGui.QImageWriter.supportedImageFormats() and QAction.data() return QByteArrays now (with QVariant API 2), resulting in: Traceback (most recent call last): File ./scribble.py, line 317,

[PyQt] convert windows app to PyQt Widget

2010-11-29 Thread M Chauhan
Hello all, I have been trying to convert an app launched by windows (for ex. calc) into a QT Widget. In docs, I found a find() command which should do that. ( http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.html#find ) But find returns a None. Below you will find an example

[PyQt] segmentation faults common when using QWebView

2010-11-29 Thread Brandon Craig Rhodes
I think that there is a bright future in using PyQt4 with a QWebView object for writing basic web tests, and for web automation. My early experiments suggest that it is a much simpler and faster solution, when one needs web page browsing with JavaScript enabled, than a heavyweight technique like

Re: [PyQt] Bugs galore in QAbstractTableModel???

2010-11-29 Thread Steve Borho
On Mon, Nov 29, 2010 at 4:35 AM, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: On Sonntag 28 November 2010, Steve Borho wrote: Indeed, I found these when I started using the file, and checked in a fixed version here: http://bitbucket.org/tortoisehg/thg/src/tip/tortoisehg/hgqt/mo deltest.py

Re: [PyQt] segmentation faults common when using QWebView

2010-11-29 Thread Hans-Peter Jansen
On Monday 29 November 2010, 16:54:42 Brandon Craig Rhodes wrote: I think that there is a bright future in using PyQt4 with a QWebView object for writing basic web tests, and for web automation. My early experiments suggest that it is a much simpler and faster solution, when one needs web page

Re: [PyQt] segmentation faults common when using QWebView

2010-11-29 Thread Brandon Craig Rhodes
Hans-Peter Jansen h...@urpla.net writes: From what I can see, you're missing fundamental concepts of the asynchronous nature of QtWebView. You should control your test flow with signals, instead of a timer, e.g.: # you need to wait for finishing the load

Re: [PyQt] convert windows app to PyQt Widget

2010-11-29 Thread Hans-Peter Jansen
On Monday 29 November 2010, 16:31:17 M Chauhan wrote: Hello all, I have been trying to convert an app launched by windows (for ex. calc) into a QT Widget. In docs, I found a find() command which should do that. ( http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.ht ml#find )

[PyQt] About dimensions of QAbstractTableModel

2010-11-29 Thread Vicent Mas
Hi, originally I posted this question the the long thread Bugs galore in QAbstractTableModel but I'm suspicious the question has just been missed because I got no answer and that thread seems now mainly devoted to modtest.py So I've decided to resend my question with a new Subject. I hope I'm

[PyQt] Strange crash with pan on qtghraphichview

2010-11-29 Thread Matteo Boscolo
Hi All, I got some strange crash in my qt open source application PythonCAD. I have implemented QGraphicsView and QGraphicsScene to render the line arc ellipse .. of my application. Randomly I have some crash from the qt library and I can't make any debug on it because the crash is not on the

Re: [PyQt] GTK+ theme and anti-aliased fonts on CentOS 5.5

2010-11-29 Thread Rex Dieter
Almar Klein wrote: On 27 November 2010 20:49, Rex Dieter rdie...@math.unl.edu wrote: Almar Klein wrote: I've build an application using PyQt running in Python 3. I am using CentOS 5.5 (using a virtual box) to build binaries which can be used on ... My questions are: - Why is the

Re: [PyQt] About dimensions of QAbstractTableModel

2010-11-29 Thread Andreas Pakulat
On 29.11.10 18:48:26, Vicent Mas wrote: 2010/11/28 Andreas Pakulat ap...@gmx.de: On 27.11.10 21:27:55, Ian wrote: [...] def rowCount(self, parent = None): ''' return No of rows of data. parent is a QModelIndex ''' return len(self.view) This is wrong, even for

Re: [PyQt] segmentation faults common when using QWebView

2010-11-29 Thread Hans-Peter Jansen
On Monday 29 November 2010, 18:30:39 Brandon Craig Rhodes wrote: Hans-Peter Jansen h...@urpla.net writes: From what I can see, you're missing fundamental concepts of the asynchronous nature of QtWebView. You should control your test flow with signals, instead of a timer, e.g.: # you

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Andreas Pakulat
On 29.11.10 18:44:58, Ian wrote: On 29/11/2010 13:09, Andreas Pakulat wrote: 4) My table has exactly 5 columns of data - ['Name','Ref','Street','Town','Contacts']. If I return 5 from columnCount() then I don't get any headers! If I return 6 then the headers appear - and include an empty

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Ian
On 29/11/2010 19:21, Andreas Pakulat wrote: On 29.11.10 18:44:58, Ian wrote: On 29/11/2010 13:09, Andreas Pakulat wrote: 4) My table has exactly 5 columns of data - ['Name','Ref','Street','Town','Contacts']. If I return 5 from columnCount() then I don't get any headers! If I return 6 then the

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Wolfgang Rohdewald
On Montag 29 November 2010, Ian wrote: Having chased down the definition of the role - not in the class or method, and not linked from either location http://doc.qt.nokia.com/4.7/qabstractitemmodel.html#data with a note: See also http://doc.qt.nokia.com/4.7/qt.html#ItemDataRole-enum there you

Re: [PyQt] About dimensions of QAbstractTableModel

2010-11-29 Thread Vicent Mas
On 2010-11-29 Andreas Pakulat ap...@gmx.de said: On 29.11.10 18:48:26, Vicent Mas wrote: 2010/11/28 Andreas Pakulat ap...@gmx.de: On 27.11.10 21:27:55, Ian wrote: [...] def rowCount(self, parent = None): ''' return No of rows of data. parent is a QModelIndex '''

Re: [PyQt] segmentation faults common when using QWebView

2010-11-29 Thread Brandon Craig Rhodes
Hans-Peter Jansen h...@urpla.net writes: Why not trigger the timer from the loadFinished signal. That way, you get the best of both worlds ;) That's a good idea! I promise to try it, just as soon as I can stop the script from giving me a segmentation fault every time that I run it. :-) If no

Re: [PyQt] Reporting Bugs in PyQt/Qt

2010-11-29 Thread Andreas Pakulat
On 29.11.10 21:05:43, Ian wrote: Hi Andreas, Thank you for the pointer. I have just googled and found the documentation that mentions this. It is not in the class I am using, nor in the method I am using, nor is it very clear when I find it. Hmmm. Having chased down the definition of

Re: [PyQt] About dimensions of QAbstractTableModel

2010-11-29 Thread Andreas Pakulat
On 29.11.10 23:03:10, Vicent Mas wrote: On 2010-11-29 Andreas Pakulat ap...@gmx.de said: On 29.11.10 18:48:26, Vicent Mas wrote: 2010/11/28 Andreas Pakulat ap...@gmx.de: On 27.11.10 21:27:55, Ian wrote: One such thing is that rowCount can be used to implement hasChildren, which is

[PyQt] Question about Sort/Filter behaviour

2010-11-29 Thread James Polk
Hi All, Before asking this question, I did side-by-side testing and confirmation of the sorting results in both the Basic and Custom examples... Even compared the C++ vs Python generated code, same results... I also checked this on Pete's newly posted custom example.. The observation is

[PyQt] Installing PyOpenGL

2010-11-29 Thread James Polk
Since it took me such a long while to get just the proper versions of Python/Qt/PyQt installed  (to sync with Maya 2011), I thought it might be wise to ask beforehand,... Apparently I need to install PyOpenGL,would doing so conflict with, or disable, or modify,etcmy existing installation