recent call last):
File stdin, line 1, in module
TypeError: unable to convert a QVariant of type 0 to a QMetaType of
type 10
What is the most elegant way to circumvent this? cathing the TypeError
and returning the empty list?
Best regards,
Wilbert
--
Wilbert Berendsen
(http
Op Mon, 11 Mar 2013 14:01:21 +
Phil Thompson p...@riverbankcomputing.com schreef:
On Mon, 11 Mar 2013 11:13:15 +0100, Wilbert Berendsen
wbs...@xs4all.nl wrote:
Hi,
It seems sip 4.14.3 forgets QTextUserData objects.
(...)
Note that it isn't forgotten that there is a QTextUserData
Op 11-03-13 15:01, Phil Thompson schreef:
It's a PyQt bug - fixed in tonight's snapshot.
Thanks.
Users of my application (Frescobaldi) also have some problems that could
relate to QTreeWidgetItems also losing their own instance attributes
(even when using a subclass of QTreeWidgetItem).
counterpart is forgotten and a new wrapped object is created.
Wilbert
--
Wilbert Berendsen
(http://www.wilbertberendsen.nl)
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
be nice if the returned value would
be forced in the type of the default value if specified.
When I must check for more possible types to be returned, I must create
a wrapper function for it, I guess
Wilbert
--
Wilbert Berendsen
(http://www.wilbertberendsen.nl
The binding code is here:
http://code.google.com/p/python-poppler-qt4/source/browse/#svn%2Ftrunk%2Fpython-poppler-qt4
What could be the cause of the failed assertion? Is it a bug in the
binding code of python-poppler-qt4, or in SIP itself?
Thanks for any enlightment :)
--
Wilbert Berendsen
(http
that regularly updates the label text
(attached).
--
Wilbert Berendsen
(http://www.wilbertberendsen.nl)
#!/usr/bin/env python
import os
import sys
from PyQt4 import QtCore, QtGui, uic
from PyQt4.QtCore import ( QString )
class BasicWindow(QtGui.QMainWindow):
def __init__(self, parent=None
#qfiledialog
w best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman
workaround to simply wrap the return super... line in a
try/except clause? Or is there a better way to prevent this?
Can I prevent that event() is called while the c++ object is not living
anyway?
with best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you
. Deletion is then handled by Qt and now event() is not
called on the wrong moment during the object deletion.
w best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
.
On PyQt4.8 the old way of connecting does work, however:
QObject.connect(qApp, SIGNAL(saveStateRequest(QSessionManager)), saveState)
does work correctly on both PyQt versions (4.7 and 4.8).
Is this intended?
with many regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must
Op maandag 18 april 2011 schreef Jeremy:
Is there any recommended way to visualize PDF files with PyQT under
Windows?
python-poppler-qt4 is a Python binding to the Poppler PDF library:
http://code.google.com/p/python-poppler-qt4/
w best regards,
Wilbert Berendsen
--
http
thanks,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Op dinsdag 26 oktober 2010 schreef Phil:
You will have to provide some handwritten code.
Thanks!
best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
way (using
QObject.connect(action, SIGNAL(triggered()) etc etc) the KAction gets
deleted, but not when I use the modern way: action.triggered.connect(func)
w best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world
googlecode SVN project for it and maintain the
source there, providing versioned tarballs for others to use as soon as it is
complete? That way this nice binding could become part of distributions
instead of everyone including its own fork (which is OK of course).
with many regards,
Wilbert Berendsen
place to provide source tarballs I can point users of my
application to.
Best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt
chance this nice
package gets updated? Otherwise I'll try myself but then I need to learn SIP a
lot better. :)
with best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
(KDE) test app to demonstrate the
problem.
Is this a bug or should I use another way of doing this?
Attached the small test app. When the user logs out the terminal, a message
should be printed on stdout.
w best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must
a
KTextEditor.Cursor instance.
w best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com
my program working in both PyQt 4.4 and 4.5 should I change every call
to:
r = config.readEntry('blaat', QVariant('bla')).toString()
?
Many thanks for an enlightening answer,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world
Hi,
when I embed a okular part (using:
part = KPluginLoader(okularpart).factory().create(mymainwindow)
I get the kpart, but how can I access it's own methods (besides those of
KPart) e.g. slotPrint() ?
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish
Hi, I would like to embed KTextEditor in a configurable way in my application,
but unfortunately PyKDE4 does not have the setSimpleMode() method on the
KTextEditor.Editor object. It seems it's missing from the sip file in KDE
4.1.2 Is this a bug?
with best regards,
Wilbert Berendsen
--
http
?
with best regards and TIA,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman
Hi, Is this legal?
q = QListBoxText(listbox)
q.bla = 3
this sets a new attribute 'bla' to 3. I could use this to have the listboxitem
carry some other data.
Or should I subclass QListBoxItem to add such an attribute?
with best regards,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl
(All,
AllOuput etc.). Is this a bug and is there a workaround to start a KProcess()
and only communicate with stdout and stdin and not stderr?
[1]http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKProcess.html#31e69eb366082bb93bbdc31e6e281019
TIA,
w best regards,
Wilbert Berendsen
I forgot to mention the version of PyKDE:
PyKDE 3.16.0
PyQT 3.17.4
KDE 3.5.8
thx,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt
haven't tried it.
A couple of other notes: 1. This enum isn't available in KDE4 and 2. A lot
of the enums in KDE4/PyKDE4 (and Qt4) will require similar strict
type-checking (everything using QFlags).
Thanks for the information and explanation.
w best regards,
Wilbert Berendsen
--
http
Op donderdag 3 april 2008, schreef Jim Bublitz:
On Wednesday 02 April 2008 08:00, Wilbert Berendsen wrote:
Hi,
I want to run a program that insists on reading from a terminal using
KProcess (from within PyKDE), but it seems KProcess::setUsePty() does not
exist:
Python 2.5.1 (r251
Berendsen
--
http://www.wilbertberendsen.nl/
Met vriendelijke groet,
Wilbert Berendsen
--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt
30 matches
Mail list logo