Re: [PyQt] PyQt API 2: equivalent of Null QVariant?

2010-12-21 Thread Hans-Peter Jansen
On Tuesday 21 December 2010, 23:58:39 Erik Janssens wrote: you could just access sql through python instead of through qt, NULL would then correspond to None ...by the price of renouncing QtSql neck and crop. That's a high price to pay, isn't it? Sure, Camelot does this, but I really

[PyQt] QSet build issues with current PyQt snapshot

2010-12-20 Thread Hans-Peter Jansen
Hi Phil, all current PyQt snapshot builds fail with: g++ -c -pipe -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -g -Wall -W -D_REENTRANT -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Hans-Peter Jansen
of Qt/PyQt. I'm sure, that Phil will look into it sooner or later.. Pete Am 16.12.2010 um 22:38 schrieb Hans-Peter Jansen: #!/usr/bin/env python from PyQt4 import QtGui app = QtGui.QApplication([]) win = QtGui.QTextEdit() win.show() app.exec_

Re: [PyQt] Hunting down memory leaks

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 22:01:40 Darryl Wallace wrote: Il giorno mar, 14/12/2010 alle 18.02 +0100, Hans Meine ha scritto: Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace: One of the things I've found in this regard has to do with Python and garbage

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 22:30:20 Phil Thompson wrote: On Fri, 17 Dec 2010 19:50:21 +0100, Ullrich Martini mail...@ullrich.martini.name wrote: Hello, here are more datails. I use MacOS 10.6.5, I assume that this is valid for any recent Mac. I assume further that this here does not

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-16 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 15:25:58 Ullrich Martini wrote: Hello, I cannot enter or view japanese characters on a Mac Running Snow Leopard with PyQt 4.8.1. Steps to reproduce the problem: -1) Install Qt (version?) 0) I Installed python 2.7 from python.org and other prerequisites, like

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-16 Thread Hans-Peter Jansen
[Please keep the ML cc'ed _at_ _least_: hint I wouldn't mind just receiving the ML copy...] On Thursday 16 December 2010, 21:32:56 Ullrich Martini wrote: Am 16.12.2010 um 20:30 schrieb Hans-Peter Jansen: On Thursday 16 December 2010, 15:25:58 Ullrich Martini wrote: Hello, I cannot enter

Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 22:55:24 Jimmy Hairy wrote: --- h...@urpla.net wrote: Despite the -dbg packages installed, there are still a few ?? in the trace. Your backtrace suffers from a libqt4 vs. libqt4-dbg mismatch, that renders it somewhat useless.. Please fix and repost. I've

Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 23:07:07 Hans-Peter Jansen wrote: On Thursday 16 December 2010, 22:55:24 Jimmy Hairy wrote: --- h...@urpla.net wrote: Despite the -dbg packages installed, there are still a few ?? in the trace. Your backtrace suffers from a libqt4 vs. libqt4-dbg

Re: [PyQt] Load font form file

2010-12-15 Thread Hans-Peter Jansen
On Wednesday 15 December 2010, 04:29:26 Mikael Modin wrote: Hi, I've downloaded a new font that I want to use in my application, how do I get a QFont object to use with QLabel.setFont()? Hmm, mostly answered in the second last thread regarding fonts in this ML:

Re: [PyQt] segfault, from qt or pyqt?

2010-12-15 Thread Hans-Peter Jansen
On Wednesday 15 December 2010, 12:16:23 Jimmy Hairy wrote: Hello, I experience somewhat random segfaults when running my program. I ran python with gdb and get a backtrace but I don't know what to do now. I can't even decide which of Qt or PyQt is the culprit. My system: Debian sid, with

Re: [PyQt] Python QT Widget Resizer

2010-12-15 Thread Hans-Peter Jansen
On Wednesday 15 December 2010, 18:05:08 Stephen Chapman wrote: https://sourceforge.net/projects/pyqtresize/ new project. check it out Mind elaborating, on what you're after? Apart from the fact, that your archive is a zip, while it advertises to be a tarball (and while at it, put it into a

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread Hans-Peter Jansen
-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] De la part de Baz Walter Envoyé : vendredi 10 décembre 2010 19:43 À : Hans-Peter Jansen Cc : pyqt@riverbankcomputing.com Objet : Re: [PyQt] Problem with QFileSystemWatcher On 10/12/10 18:10, Hans-Peter Jansen wrote

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread Hans-Peter Jansen
On Monday 13 December 2010, 13:17:20 NARCISO, Rui wrote: Thanks Pete for both suggestions. However, redirecting the stderr to a file is a bit too much !!! Hehe, I told you so.. Having looked into the code, the message seems to originate from a qDebug but I don't understand why that one gets

Re: [PyQt] Setting the window icon of a QDialog or QWidget using setWindowIcon() method

2010-12-13 Thread Hans-Peter Jansen
On Monday 13 December 2010, 19:06:49 Guruprasad wrote: Hi all, I am a PyQt4 beginner just in the process of learning. Welcome to the club. I came across this method setWindowIcon() that is used to set the icon of a window/dialog/widget. But calling that method before calling the show()

Re: [PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

2010-12-10 Thread Hans-Peter Jansen
On Friday 10 December 2010, 18:04:08 Baz Walter wrote: On 10/12/10 07:57, Christopher Singley wrote: Sorry, I spoke too fast. The issue persists on my system: Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Hans-Peter Jansen
Dear Rui, On Friday 10 December 2010, 11:08:50 NARCISO, Rui wrote: When I use absolute paths (os.path.abspath) or real paths (os.path.realpath) or even relative paths (../../toto) it doesn't work. It only works when I use only the file name. Works fine here with absolute paths. Consequently,

[PyQt] PyQt metrics

2010-12-09 Thread Hans-Peter Jansen
Hi Phil, hi *, ever wanted to know, how many classes and methods PyQt4 provides? I'm not sure, if my calculations are valid, but according to my QD script (attached), they are: Metric(name: PyQt4.phonon, modules: 1, classes: 52, methods: 2274, functions: 0) Metric(name: PyQt4.Qsci, modules: 1,

Re: [PyQt] compile flags propagation WAS: RE: PyQt snapshot debug info

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 17:49:25 Phil Thompson wrote: On Wed, 8 Dec 2010 13:41:42 +0100, Hans-Peter Jansen h...@urpla.net export CXXFLAGS=$RPM_OPT_FLAGS export CFLAGS=$RPM_OPT_FLAGS What affect will these have? None, unfortunately. I've just tried with the QMAKE_* variants

Re: [PyQt] Remove resize arrow

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 20:33:47 Hugo Leveille wrote: I have a mainwindow that I would like to remove the resize handle on the bottom right so that the window is not resizable. self.statusBar().setSizeGripEnabled(False) but that might not sufficient. Check out the

Re: [PyQt] Switching languages dynamically example

2010-12-09 Thread Hans-Peter Jansen
Dear Giovanni, On Wednesday 08 December 2010, 16:27:12 Giovanni Bajo wrote: On mer, 2010-12-08 at 15:26 +0100, Hans-Peter Jansen wrote: Hi, I found a Qt example of switching languages dynamically here: http://www.qtcentre.org/wiki/index.php?title

Re: [PyQt] PyQt metrics

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 19:46:26 Baz Walter wrote: On 09/12/10 17:40, Hans-Peter Jansen wrote: Hi Phil, hi *, ever wanted to know, how many classes and methods PyQt4 provides? I'm not sure, if my calculations are valid, but according to my QD script (attached

[PyQt] compile flags propagation WAS: RE: PyQt snapshot debug info

2010-12-08 Thread Hans-Peter Jansen
On Tuesday 07 December 2010, 20:41:42 Hans-Peter Jansen wrote: On Tuesday 07 December 2010, 18:21:16 Phil Thompson wrote: On Mon, 6 Dec 2010 21:57:15 +0100, Hans-Peter Jansen h...@urpla.net PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/qpy/QtDeclarative/QtDecla rative/sipAPIQtDeclarative.h

[PyQt] Switching languages dynamically example

2010-12-08 Thread Hans-Peter Jansen
Hi, I found a Qt example of switching languages dynamically here: http://www.qtcentre.org/wiki/index.php?title=Dynamic_translation_in_Qt4_applications In addition to the original version, the PyQt version does try to preselect the language intelligently to the current system default. Since it

Re: [PyQt] Question about drawing background images in a QGraphicsScene and QGraphicsView

2010-12-08 Thread Hans-Peter Jansen
On Wednesday 08 December 2010, 16:26:01 dizou wrote: I have a QGraphicsScene and a QGraphicsView. I am currently using the QGraphicsView to draw a backgorund image. I have reimplemented the QGraphicsView::drawBackground() function like this: def drawBackground(self, painter, rect):

Re: [PyQt] Bug in QFileDialog

2010-12-08 Thread Hans-Peter Jansen
On Friday 03 December 2010, 11:12:42 Vicent Mas wrote: Hi, the attached script shows a bug in QFileDialog. If on a given dialog you call setLabelText(QFileDialog.Accept, text) and then you call setFileMode(FileMode) then the label is not set and the default label is used. If you call

Re: [PyQt] Bug in QFileDialog

2010-12-08 Thread Hans-Peter Jansen
On Wednesday 08 December 2010, 20:24:16 Vicent Mas wrote: On 2010-12-08 Hans-Peter Jansen h...@urpla.net said: On Friday 03 December 2010, 11:12:42 Vicent Mas wrote: Hi, the attached script shows a bug in QFileDialog. If on a given dialog you call setLabelText(QFileDialog.Accept

Re: [PyQt] Bug in QFileDialog

2010-12-08 Thread Hans-Peter Jansen
On Wednesday 08 December 2010, 22:42:45 Hans-Peter Jansen wrote: On Wednesday 08 December 2010, 20:24:16 Vicent Mas wrote: On 2010-12-08 Hans-Peter Jansen h...@urpla.net said: On Friday 03 December 2010, 11:12:42 Vicent Mas wrote: Hi, the attached script shows a bug

Re: [PyQt] sip/pyqt4/cmake question

2010-12-07 Thread Hans-Peter Jansen
On Tuesday 07 December 2010, 03:56:17 luxInteg wrote: On Monday 06 December 2010 21:05:51 luxInteg wrote: greetings I am attempting to compile a test Qt4/PyQt4 project with cmake The machine used for compiling has these:- --cpu amd64 2 cores --o/s linux 64bit cblfs kernel-2.6.32

Re: [PyQt] PyQt snapshot debug info

2010-12-07 Thread Hans-Peter Jansen
On Tuesday 07 December 2010, 18:21:16 Phil Thompson wrote: On Mon, 6 Dec 2010 21:57:15 +0100, Hans-Peter Jansen h...@urpla.net PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/qpy/QtDeclarative/QtDeclarative/sipAPIQtDeclarative.h: Cannot stat: No such file or directory Okay, I missed the *.h

Re: [PyQt] Application not hiding from taskbar

2010-12-06 Thread Hans-Peter Jansen
On Monday 06 December 2010, 13:13:44 Mikael Modin wrote: I figured out how to solve my little conundrum. My solution is so ugly I'm ashamed but I can't figure out why self.hide() doesn't hide my window in the first place. Here's the final code: def hideEvent(self, event):

Re: [PyQt] PyQt snapshot debug info

2010-12-06 Thread Hans-Peter Jansen
On Monday 06 December 2010, 13:51:14 Phil Thompson wrote: On Sun, 5 Dec 2010 00:23:45 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, something changed related to the debugging symbols between the 4.8.1 release and the current snapshot: + /usr/lib/rpm/find-debuginfo.sh

Re: [PyQt] PyQt snapshot debug info

2010-12-06 Thread Hans-Peter Jansen
Phil, sorry for being such a pest. This is the third time, I started with creating a bug report against rpm, but each time I noticed something that points in your direction. On Monday 06 December 2010, 18:01:27 Phil Thompson wrote: On Mon, 6 Dec 2010 14:59:11 +0100, Hans-Peter Jansen h

Re: [PyQt] PyQt install on suse 11 SP1

2010-12-05 Thread Hans-Peter Jansen
On Sunday 05 December 2010, 12:44:51 Anup Joshi wrote: Hello: I am trying to install pyQT on suse linux ( 11 sp1) . Please define: suse linux ( 11 sp1) The output of: cat /etc/SuSE-release is sufficient. I have already installed Qt. Istalled from rpm? When I run configure.py in the

[PyQt] PyQt snapshot debug info

2010-12-04 Thread Hans-Peter Jansen
Hi Phil, something changed related to the debugging symbols between the 4.8.1 release and the current snapshot: + /usr/lib/rpm/find-debuginfo.sh /usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f extracting debug info from /var/tmp/python-qt4-4.8.2-build/usr/bin/pyrcc4 extracting

Re: [PyQt] Translations failing when not using self for the instance

2010-12-03 Thread Hans-Peter Jansen
On Friday 03 December 2010, 12:36:44 Thorsten Kampe wrote: Hi, when using other names for the self idiom referring to the current instance (like inst for example - see [1]), the application is not correctly translated. If I open the generated ts file in Qt Linguist it shows two contexts

Re: [PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

2010-12-03 Thread Hans-Peter Jansen
On Friday 03 December 2010, 21:47:06 Daniel Goertzen wrote: While running cx_freeze with an installation of PyQt-Py3.1-gpl-4.8.1-1, I got the following error: File C:\Python31\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py, ^^^ line 17

Re: [PyQt] Python 3 import error

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 12:24:54 Thorsten Kampe wrote: Hi, I'm trying to port a PyQt4 application from Python 2 to Python 3. The application works fine with the latest Python 2 (2.7.1) but not with Python 3.1.2: Traceback (most recent call last): File my_application.pyw, line 10,

Re: [PyQt] Python 3 import error

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 18:31:04 Thorsten Kampe wrote: * Hans-Peter Jansen (Thu, 2 Dec 2010 15:47:28 +0100) On Thursday 02 December 2010, 14:25:21 Thorsten Kampe wrote: Okay, if I omit the .toByteArray(), then the application starts with Python 3 - but it doesn't work with Python 2

Re: [PyQt] Segmentation Fault(coredump) QFileSystemModel, QSortFilterProxyModel, QTreeView

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 18:37:33 Jean Dalmayrac wrote: Hi All, I'm having segmentation fault crash while using QFileSystemModel and QSortFilterProxyModel. I'm trying to do a little files manager that will latter fit into a bigger application. Everything is running normally, but after

Re: [PyQt] Question about Sort/Filter behaviour

2010-12-01 Thread Hans-Peter Jansen
On Wednesday 01 December 2010, 00:47:56 Hans-Peter Jansen wrote: On Tuesday 30 November 2010, 04:02:48 James Polk wrote: For example,...supposed I set filterColumn to Date filterSyntax  to  Wildcard and finally, in filterPattern, I type 1/*    (with no quotes) I would

Re: [PyQt] Sip usage problem

2010-12-01 Thread Hans-Peter Jansen
On Wednesday 01 December 2010, 23:45:44 James Polk wrote: I read the Wikipedia page that explains what SIP is and does, though I can't say I understood everything it explained ;-) I'm getting a SIP usage error and I was hoping someone here could help me understand the phenomena... In my

Re: [PyQt] segmentation faults common when using QWebView

2010-11-30 Thread Hans-Peter Jansen
On Tuesday 30 November 2010, 10:43:35 Phil Thompson wrote: On Mon, 29 Nov 2010 17:05:57 -0500, Brandon Craig Rhodes bran...@rhodesmill.org wrote: 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

Re: [PyQt] segmentation faults common when using QWebView

2010-11-30 Thread Hans-Peter Jansen
On Tuesday 30 November 2010, 16:09:09 Brandon Craig Rhodes wrote: Hans-Peter Jansen h...@urpla.net writes: Brandon, forgot to add: I bet, that the simplest version (just the first webview.load, findAll, and click) as C++ version will also crash in a similar way, pointing to some

[PyQt] revising Q*Style support

2010-11-30 Thread Hans-Peter Jansen
Dear Phil, while your mindset concerning Q*Style plugins is well known, please allow me to present an idea on how to solve this dilemma properly. Lets start with recapitulating the obvious: * sometimes one would like to subclass from the built in styles, since there are certain tasks, that

[PyQt] calendarwidget and stylesheet examples

2010-11-30 Thread Hans-Peter Jansen
Hi Phil, attached are two missing widget examples. I noticed, that you reorganized the other examples, and will try to follow these guides. The stylesheet example derives from its original in that it has added an option to save a stylesheet. Enjoy, Pete calendarwidget.py Description:

Re: [PyQt] Question about Sort/Filter behaviour

2010-11-30 Thread Hans-Peter Jansen
On Tuesday 30 November 2010, 04:02:48 James Polk wrote: 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

Re: [PyQt] calendarwidget and stylesheet examples

2010-11-30 Thread Hans-Peter Jansen
On Wednesday 01 December 2010, 00:14:14 Albert Cervera i Areny wrote: A Dimarts, 30 de novembre de 2010, Hans-Peter Jansen va escriure: Hi Phil, attached are two missing widget examples. I noticed, that you reorganized the other examples, and will try to follow these guides. Changing

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 only

[PyQt] complete webkit examples collection

2010-11-29 Thread Hans-Peter Jansen
Hi Phil, hi *, attached are a collection of the webkit examples: domtraversal.py fancybrowser.py formextractor.py framecapture.py googlechat.py previewer.py simpleselector.py A few notes: They demonstrate different aspects in using the

[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,

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] 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 )

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

[PyQt] issues with webkit javascript interaction

2010-11-28 Thread Hans-Peter Jansen
Hi Phil, here's the next issue, this time related to webkit javascript interaction. The code is ported from Qt's webkit/formextractor example. It tries to make use of addToJavaScriptWindowObject(), which should be allow to interact with javascript code. Unfortunately, triggering submit, which

Re: [PyQt] SIP v5 Roadmap

2010-11-27 Thread Hans-Peter Jansen
On Monday 22 November 2010, 17:06:01 Phil Thompson wrote: I've added a roadmap for SIP v5 at... http://www.riverbankcomputing.com/software/sip/roadmap From the latest experience with PyQwt (with the still unexplained issues related to switching off a feature: see thread [PyQt] sip snapshot

Re: [PyQt] QStandardItemEditorCreator missing solved: coloreditorfactory example attached

2010-11-27 Thread Hans-Peter Jansen
On Friday 26 November 2010, 15:15:32 Phil Thompson wrote: On Thu, 25 Nov 2010 22:57:42 +0100, Hans-Peter Jansen h...@urpla.net wrote: [Missed to addressed you directly the last time, sorry] On Thursday 25 November 2010, 18:23:38 Hans-Peter Jansen wrote: On Thursday 25 November 2010, 14

[PyQt] simplewidgetmapper.py, customsortfiltermodel.py, combowidgetmapper.py examples

2010-11-27 Thread Hans-Peter Jansen
Hi Phil, hi *, attached are a few missing itemview examples for the collection. While simplewidgetmapper.py and combowidgetmapper.py differ only in minor details, the customsortfiltermodel.py differs from the original in a major aspect: it actually works unlike the original ;-) - the filters

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-27 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 03:33:28 James Polk wrote: WhoI got a custom delegate installedat least partially, lol... Using the basic QItemDelegate I've first tried a comboBox, which seems a little more straightforward,.. Congrats, James. The world isn't as bad as it feels

Re: [PyQt] OnManualSubmit + insertRows: EditRole and DisplayRole = QVariant.Invalid?

2010-11-26 Thread Hans-Peter Jansen
On Friday 26 November 2010, 10:22:02 sbre...@hotmail.com wrote: Thanks for the quick reply. Here is a small rewrite (extension) of connection.py. If you comment out the line m.setEditStrategy(QtSql.QSqlTableModel.OnManualSubmit) then it is all fine, otherwise the custom editor widget for int

Re: [PyQt] QStandardItemEditorCreator missing

2010-11-26 Thread Hans-Peter Jansen
On Friday 26 November 2010, 15:15:32 Phil Thompson wrote: On Thu, 25 Nov 2010 22:57:42 +0100, Hans-Peter Jansen h...@urpla.net wrote: [Missed to addressed you directly the last time, sorry] On Thursday 25 November 2010, 18:23:38 Hans-Peter Jansen wrote: On Thursday 25 November 2010, 14

[PyQt] QStandardItemEditorCreator missing

2010-11-25 Thread Hans-Peter Jansen
Hi Phil, attached is an attempt to port the coloreditorfactory example to PyQt. This reveals a few issues, though. the most prominent thing, that stands out, is that QStandardItemEditorCreator is missing. This wouldn't harm as such, if I would be able to wrap my mind around PyQt's Qt

Re: [PyQt] QStandardItemEditorCreator missing

2010-11-25 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 13:27:00 Phil Thompson wrote: On Thu, 25 Nov 2010 13:11:13 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, attached is an attempt to port the coloreditorfactory example to PyQt. This reveals a few issues, though. the most prominent thing

Re: [PyQt] QStandardItemEditorCreator missing

2010-11-25 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 14:44:33 Phil Thompson wrote: On Thu, 25 Nov 2010 14:26:50 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Thursday 25 November 2010, 13:27:00 Phil Thompson wrote: On Thu, 25 Nov 2010 13:11:13 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil

Re: [PyQt] Phonon error in 4.8.1

2010-11-25 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 14:17:55 Sebastian Elsner wrote: Hello, switching to 4.8.1 gave me this error: WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::VideoWidget ( no objectName ). The VideoPlayer worked well in previous versions

Re: [PyQt] OnManualSubmit + insertRows: EditRole and DisplayRole = QVariant.Invalid?

2010-11-25 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 17:57:09 sbre...@hotmail.com wrote: Hello, With OnManualSubmit on QSqlTableModel using the insertRows function the cell roles for EditRole and DisplayRole is not set properly. Actually they seem to remain uninitialized and have the value QVariant.Invalid. This

Re: [PyQt] QStandardItemEditorCreator missing

2010-11-25 Thread Hans-Peter Jansen
[Missed to addressed you directly the last time, sorry] On Thursday 25 November 2010, 18:23:38 Hans-Peter Jansen wrote: On Thursday 25 November 2010, 14:44:33 Phil Thompson wrote: On Thu, 25 Nov 2010 14:26:50 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Thursday 25 November 2010

Re: [PyQt] QStandardItemEditorCreator missing

2010-11-25 Thread Hans-Peter Jansen
On Thursday 25 November 2010, 22:24:02 Baz Walter wrote: On 25/11/10 17:23, Hans-Peter Jansen wrote: Unfortunately, it's still not behaving right: the color chooser is created and shown correctly on double click, one can choose another value, but that isn't supplied back into the table

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 04:00:15 James Polk wrote: Hans, I'm sure you're right, but I'm still a little dense about this, lol... All the examples of spinDelegates that I've seen are using integers, and are present in every cell...usually in QTableView... I'm using QTreeView, and I

Re: [PyQt] PyQt.QtHelp - QFSFileEngine::open: No file name specified

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 13:54:50 romain wrote: Hans-Peter Jansen wrote: On Tuesday 23 November 2010, 14:28:16 romain wrote: Hi everybody, I am facing an issue when I use the PyQt.QtHelp module. I have generated a .qhc file containing the documentation I want to embed

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 19:10:05 James Polk wrote: I've transcoded the stardelegate example a few weeks ago, which uses a custom widget in a QTableView, but due to the model/view/delegate pattern, that should be easy to map onto your problem. Pete Thanks for your reply, Pete...

Re: [PyQt] Resize columns in QTreeViewv

2010-11-23 Thread Hans-Peter Jansen
[Rebounce to list, no need to address me directly..] On Tuesday 23 November 2010, 14:11:17 Gionata Boccalini wrote: Ok, I now I have QTimer.singleShot(4, self.resizeColumn) in the slot, where self.resizeColumn is a callable: def resizeColumn(self):

Re: [PyQt] PyQt.QtHelp - QFSFileEngine::open: No file name specified

2010-11-23 Thread Hans-Peter Jansen
On Tuesday 23 November 2010, 14:28:16 romain wrote: Hi everybody, I am facing an issue when I use the PyQt.QtHelp module. I have generated a .qhc file containing the documentation I want to embed into my soft so users can access it directly. It is made up with .html pages. I have joined

Re: [PyQt] Complex header of QTableView

2010-11-23 Thread Hans-Peter Jansen
On Tuesday 23 November 2010, 15:12:23 Vadym Honcharuk wrote: Hello to List, I created enought complex table based on QTableView (with models, proxy, interconnections, etc) but now my task is similar complex header for this table with miltiple rows, columns span and so on. As far I know seems

Re: [PyQt] Setting image as background in QListView

2010-11-22 Thread Hans-Peter Jansen
On Monday 22 November 2010, 18:21:21 absk82 wrote: Does anyone have any ideas about this? absk82 wrote: For some reason, my post didn't make it through for 2 days, so trying to send it through the mailing list. Hi, I have been having some trouble setting the background image in a

Re: [PyQt] Resize columns in QTreeView

2010-11-22 Thread Hans-Peter Jansen
On Monday 22 November 2010, 20:56:35 Gionata Boccalini wrote: Hi, I am doing a small file browser with 2 QTreeView (treeView and fileView) linked with 2 different QFileSystemModel (dirModel and fileModel): when the user selects a folder on the left view I want the contents of that folder to

Re: [PyQt] sip snapshot problem with PyQwt

2010-11-17 Thread Hans-Peter Jansen
On Monday 15 November 2010, 10:57:44 Phil Thompson wrote: On Mon, 15 Nov 2010 01:27:34 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Sunday 14 November 2010, 13:13:55 Phil Thompson wrote: On Sun, 14 Nov 2010 00:33:38 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, hi

Re: [PyQt] Phonon import error

2010-11-17 Thread Hans-Peter Jansen
Dear Gionata, On Tuesday 16 November 2010, 21:34:18 Gionata Boccalini wrote: Hi everyone, first post to this mailing list! I have been having a problem importing Phonon module in a PyQt GUI application. The result is from PyQt4 import Phonon Traceback (most recent call last): File

Re: [PyQt] Phonon import error

2010-11-17 Thread Hans-Peter Jansen
. Thanks. Pete Gionata Boccalini Il 17/11/2010 14:34, Hans-Peter Jansen ha scritto: Dear Gionata, On Tuesday 16 November 2010, 21:34:18 Gionata Boccalini wrote: Hi everyone, first post to this mailing list! I have been having a problem importing Phonon module in a PyQt GUI

Re: [PyQt] sip snapshot problem with PyQwt

2010-11-14 Thread Hans-Peter Jansen
On Sunday 14 November 2010, 13:13:55 Phil Thompson wrote: On Sun, 14 Nov 2010 00:33:38 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, hi Gerard, in an attempt to build PyQwt with the current sip snapshot (c38668e9dd93), sip fails with a strange error: /usr/bin/sip -I

Re: [PyQt] PyQt wiki keeps getting spammed

2010-11-13 Thread Hans-Peter Jansen
On Saturday 13 November 2010, 22:26:59 Giacomo Lacava wrote: I keep reverting pages and banning users, but sometimes it feels like fighting windmills. I bet there's crap embedded in buried pages that I don't know about. What do ? A wiki with captcha secured user creation? Pete

[PyQt] sip snapshot problem with PyQwt

2010-11-13 Thread Hans-Peter Jansen
Hi Phil, hi Gerard, in an attempt to build PyQwt with the current sip snapshot (c38668e9dd93), sip fails with a strange error: /usr/bin/sip -I /usr/share/sip/PyQt4 -b tmp-qwt5qt4/qwt5qt4.sbf -c tmp-qwt5qt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_7_1 -x Py_v3 -g -x

Re: [PyQt] out of memory while building

2010-11-11 Thread Hans-Peter Jansen
On Thursday 11 November 2010, 15:11:34 Lic. José M. Rodriguez Bacallao wrote: hi folks, I yesterday I try to build PyQt4 v4.8.1 with Qt v4.7.0 and with these options python ./configure.py -w -c -g --confirm-license --protected-is-public -b build/bin -d

Re: [PyQt] How can i capture activated signal of Tray Icon??

2010-11-10 Thread Hans-Peter Jansen
Am Tuesday 09 November 2010 15:08:29 schrieb Jebagnana Das: Thanks Zoltan.. It did help a lot.. But if i want to capture single click and double click events of the mouse separately i'm afraid this can't be used.. def onTrayIconActivated(self, reason): if reason ==

Re: [PyQt] table view - large cell values - newbie question

2010-11-06 Thread Hans-Peter Jansen
On Saturday 06 November 2010, 08:58:37 Glenn Linderman wrote: Had the aha feeling recently when finally getting a Table View to work, so my display of spreadsheet-style data of more than a few entries was actually blazing fast, instead of dog slow. Now I can start to be more esoteric but

[PyQt] ipc/shared memory examples

2010-11-03 Thread Hans-Peter Jansen
Hi Phil et al., now, that sip.voidptr allows to access and modify shared memory segments, here are Qt4's ipc examples converted to PyQt, tested with Python 2.6. Testing with 2.7 and 3.x might be a good idea.. Note, that you need at least sip4 852:af2d7120dd7f for the sharedmemory example.

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 11:16:35 Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data = buffer

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 13:26:44 Phil Thompson wrote: On Tue, 02 Nov 2010 13:19:06 +0100, Giovanni Bajo ra...@develer.com wrote: On mar, 2010-11-02 at 13:57 +0200, Hans-Peter Jansen wrote: On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +

Re: [PyQt] Advice requested on MDI Image Viewer with synchronized windows

2010-11-02 Thread Hans-Peter Jansen
Hi wingusr, On Tuesday 02 November 2010, 20:56:35 TP wrote: On Wed, Oct 27, 2010 at 2:39 PM, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 19 October 2010, 07:41:55 TP wrote: I'm trying to write my first PyQt program. I eventually plan on creating an open-source PyQt app

[PyQt] Access to QSharedMemory with buffer protocol

2010-11-01 Thread Hans-Peter Jansen
Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data = buffer(sharedMemory.data()) ...should give _write_ access to the memory. Hmm, not here: $ python Python 2.6 (r26:66714, Mar 30 2010, 00:30:21) [GCC 4.3.2

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-01 Thread Hans-Peter Jansen
, Nov 1, 2010 at 3:00 PM, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data = buffer(sharedMemory.data()) ...should give _write_ access to the memory. Hmm, not here

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-27 Thread Hans-Peter Jansen
On Wednesday 27 October 2010, 20:34:18 Hans Meine wrote: Hi, I am having lots of crashes with my implementation of a dummy proxy model. Could someone please look at this and tell me at which point I am being stupid (and blind) or whether this is a problem with [Py]Qt? I have attached a

Re: [PyQt] Advice requested on MDI Image Viewer with synchronized windows

2010-10-27 Thread Hans-Peter Jansen
Hi TP, first of all, your app is fine, but this group tends to consume much smaller messages in one time. Hence nobody answered 'til now, and I fear, only few read it.. Something I'm missing personally is some real name. On Tuesday 19 October 2010, 07:41:55 TP wrote: I'm trying to write my

Re: [PyQt] Detecting which Python version is used by SIP and PyQt

2010-10-23 Thread Hans-Peter Jansen
On Saturday 23 October 2010, 02:54:40 Xavion wrote: Arch Linux has recently switched its 'python' package to the Python v3 branch. SIP and PyQt still require the 'python2' package, probably because the unpatched D-Bus Python bindings currently won't work with Python v3. I'm guessing that

Re: [PyQt] Detecting which Python version is used by SIP and PyQt

2010-10-23 Thread Hans-Peter Jansen
On Saturday 23 October 2010, 14:32:52 Phil Thompson wrote: On Sat, 23 Oct 2010 13:25:39 +0200, Hans-Peter Jansen h...@urpla.net wrote: On Saturday 23 October 2010, 02:54:40 Xavion wrote: Arch Linux has recently switched its 'python' package to the Python v3 branch. SIP and PyQt still

Re: [PyQt] Detecting which Python version is used by SIP and PyQt

2010-10-23 Thread Hans-Peter Jansen
On Saturday 23 October 2010, 19:28:34 Baz Walter wrote: On 23/10/10 18:07, Phil Thompson wrote: On Sat, 23 Oct 2010 17:39:28 +0100, Baz Walterbaz...@ftml.net wrote: On 23/10/10 12:25, Hans-Peter Jansen wrote: On Saturday 23 October 2010, 02:54:40 Xavion wrote: Doing so will save me from

Re: [PyQt] Detecting which Python version is used by SIP and PyQt

2010-10-23 Thread Hans-Peter Jansen
On Saturday 23 October 2010, 22:35:36 Baz Walter wrote: On 23/10/10 20:04, Hans-Peter Jansen wrote: On Saturday 23 October 2010, 19:28:34 Baz Walter wrote: On 23/10/10 18:07, Phil Thompson wrote: On Sat, 23 Oct 2010 17:39:28 +0100, Baz Walterbaz...@ftml.net wrote: On 23/10/10 12:25

[PyQt] dip @IAutomated.items.getter traceback

2010-10-23 Thread Hans-Peter Jansen
Hi Phil, running dip-builder, choosing a new project, enter the values, and hitting Create application script... results in: DIP Builder(31299)/: Trying to open ksycoca from /var/tmp/kdecache-hp/ksycoca4 Traceback (most recent call last): File

Re: [PyQt] QSettings usage - multiple?

2010-10-21 Thread Hans-Peter Jansen
On Thursday 21 October 2010, 16:16:21 Baz Walter wrote: On 20/10/10 14:22, Randy Heiland wrote: Hello, Is it possible to have multiple QSettings files for an app? Basically, our situation is that we have an app and we save various params associated with the app via the QSettings

<    1   2   3   4   5   6   7   8   >