Re: [PyQt] question on drag and drop

2010-10-19 Thread Baz Walter
On 19/10/10 21:07, danny wrote: when your reimplemented mimeTypes() method is called internally by qt, the first item in the returned list will be used to set the format. Ok, I think I get it. Internal DnD will use the first specified mime type. That still raises the question of the purpose

Re: [PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-19 Thread Hans-Peter Jansen
On Tuesday 19 October 2010, 20:44:02 kirotawa wrote: > Hi, > I installed the Pyqt4.7.7 but the QgraphicsEffect dont work, just it > module. Somebody knows why this? > I use python 2.6, my ubuntu is 9.04, yet. ..but you miss to provide a minimum example, that demonstrates your issue. Try to see

Re: [PyQt] dip snapshot with many test failures

2010-10-19 Thread Hans-Peter Jansen
On Tuesday 19 October 2010, 15:38:02 Phil Thompson wrote: > On Tue, 19 Oct 2010 15:25:25 +0200, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > in an attempt to build dip-py2-gpl-0.3-snapshot-dc1c5e94a3f3, I > > noticed a huge number of test failures. Is that to be expected? > > > > Pete > >

Re: [PyQt] question on drag and drop

2010-10-19 Thread danny
> when your reimplemented mimeTypes() method is called internally by qt, > the first item in the returned list will be used to set the format. > Ok, I think I get it. Internal DnD will use the first specified mime type. That still raises the question of the purpose of the mimeType() method. T

[PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-19 Thread kirotawa
Hi, I installed the Pyqt4.7.7 but the QgraphicsEffect dont work, just it module. Somebody knows why this? I use python 2.6, my ubuntu is 9.04, yet. []'s ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/list

[PyQt] Pyqt 4.7.7

2010-10-19 Thread leo kirotawa
Hi, I installed the Pyqt4.7.7 but the QgraphicsEffect dont work, just it module. Somebody knows why this? I use python 2.6, my ubuntu is 9.04, yet. []'s -- Leônidas S. Barbosa (Kirotawa) [DesenvolvedorWeb/CEFET/RN] [Ciências da Computação/UFRN] [pós-graduando em Inteligência Computacional/Proces

Re: [PyQt] question on drag and drop

2010-10-19 Thread Baz Walter
On 19/10/10 18:13, danny wrote: Howdy, I'm trying to impliment DnD in a QTreeView with a custom model derived from QAbstractItemModel. I have run into the following question. I want to be able to drag onto the tree from an external source. I also want to do internal DnD to rearrange items. The m

Re: [PyQt] Request for __lshift__ support in QPolyg onF for QPointF

2010-10-19 Thread Phil Thompson
On Tue, 19 Oct 2010 01:18:46 +0200, "Hans-Peter Jansen" wrote: > Hi Phil, > > any deeper reason, why code like this is not supported: Laziness on my part. > import math > from PyQt4 import QtCore, QtGui > > class StarRating(object): > # enum EditMode > Editable, ReadOnly = range(2) >

[PyQt] question on drag and drop

2010-10-19 Thread danny
Howdy, I'm trying to impliment DnD in a QTreeView with a custom model derived from QAbstractItemModel. I have run into the following question. I want to be able to drag onto the tree from an external source. I also want to do internal DnD to rearrange items. The mime type of internal drag is 'app

Re: [PyQt] PyQt instances as method defaults eval to bool

2010-10-19 Thread Phil Thompson
On Mon, 18 Oct 2010 16:14:50 +0200, "Hans-Peter Jansen" wrote: > Hi Phil, > > current sip and PyQt show some issues with PyQt instances, that are used > as method defaults, e.g. the usual "parent = QtCore.QModelIndex()" in > Qt's model/view paradigm. > > Run the itemviews/editabletreemodel.py

[PyQt] Virtualenv + PyQt plugin path

2010-10-19 Thread Blazej Floch
I've setup a virtual env and copied PyQt to it's site-packages folder. Unfortunately it can't find the (image) plugins and I am not sure if qt.conf actually does something or where to put it in a virtual python enviroment. Since QLibraryInfo points to D:\Qt\4.5.3 (which doesn't exist) it's ha

Re: [PyQt] dip snapshot with many test failures

2010-10-19 Thread Phil Thompson
On Tue, 19 Oct 2010 15:25:25 +0200, "Hans-Peter Jansen" wrote: > Hi Phil, > > in an attempt to build dip-py2-gpl-0.3-snapshot-dc1c5e94a3f3, I noticed > a huge number of test failures. Is that to be expected? > > Pete > > Python version: 2.6 > sip version: 4.11.2-snapshot-5167b98767e2 > Qt4 ver

Re: [PyQt] Compiling PyQt 4 with QT_NAMESPACE=x

2010-10-19 Thread Phil Thompson
On Tue, 19 Oct 2010 10:54:49 +0200, Elias Bachaalany wrote: > Thank you Phil. > > For the plugin I am developing (which links to a different namespace set > of QT dlls) can I provide precompiled PyQt (*.pyd) files for download > meanwhile? Do whatever you want (so long as you respect the licen

Re: [PyQt] Compiling PyQt 4 with QT_NAMESPACE=x

2010-10-19 Thread Elias Bachaalany
Thank you Phil. For the plugin I am developing (which links to a different namespace set of QT dlls) can I provide precompiled PyQt (*.pyd) files for download meanwhile? Regards, Elias On 10/18/2010 6:39 PM, Phil Thompson wrote: On Mon, 18 Oct 2010 17:36:51 +0200, Elias Bachaalany wrote: