<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.python.pyqt-pykde">
    <title>gmane.comp.python.pyqt-pykde</title>
    <link>http://blog.gmane.org/gmane.comp.python.pyqt-pykde</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12990"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12989"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12988"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12987"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12983"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12981"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12977"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12975"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12974"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12973"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12970"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12964"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12962"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12961"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12958"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12945"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12944"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12943"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12942"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12940"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12990">
    <title>PyQt Application</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12990</link>
    <description></description>
    <dc:creator>Aminu D</dc:creator>
    <dc:date>2008-08-28T17:05:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12989">
    <title>Fw: Re: PyQt4.uic Error!!..</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12989</link>
    <description/>
    <dc:creator>Aminu D</dc:creator>
    <dc:date>2008-08-28T02:11:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12988">
    <title>Problem with event.modifiers()</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12988</link>
    <description>Hello

When trying to do certain bitwise operations on the object returned by 
QKeyEvent.modifiers() I get the following error:

TypeError: unsupported operand type(s) for |: 'KeyboardModifiers' and 'int'

Looking at the base class for this object, I see that it is of type 
'sip.wrapper', when it should be type 'int'.

Regards
Baz Walter
</description>
    <dc:creator>Baz Walter</dc:creator>
    <dc:date>2008-08-27T18:57:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12987">
    <title>py qt for maya</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12987</link>
    <description/>
    <dc:creator>kNish</dc:creator>
    <dc:date>2008-08-27T17:53:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12983">
    <title>PyQt4.uic Error!!..</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12983</link>
    <description>_______________________________________________
PyQt mailing list    PyQt&lt; at &gt;riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt</description>
    <dc:creator>Aminu D</dc:creator>
    <dc:date>2008-08-26T14:48:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12981">
    <title>pyuic4 strange behavior</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12981</link>
    <description>Hello,

I am trying to generate some python code from a Qt Designer file with 
pyuic4. In my GUI I have a custom widget written in python (see another 
of my posts).
The code of the custom widget start with the usual "from PyQt4 import 
QtCore, QtGui".

Now, if I run pyuic4 I get this error message:

---
Traceback (most recent call last):
   File "/Library/Python/2.5/site-packages/PyQt4/uic/pyuic.py", line 73, 
in &lt;module&gt;
     options.indent, options.pyqt3_wrapper)
   File "/Library/Python/2.5/site-packages/PyQt4/uic/pyuic.py", line 28, 
in generateUi
     uic.compileUi(uifname, pyfile, execute, indent, pyqt3_wrapper)
   File "/Library/Python/2.5/site-packages/PyQt4/uic/__init__.py", line 
66, in compileUi
     winfo = compiler.UICompiler().compileUi(uifile, pyfile)
   File 
"/Library/Python/2.5/site-packages/PyQt4/uic/Compiler/compiler.py", line 
15, in __init__
     CompilerCreatorPolicy())
   File "/Library/Python/2.5/site-packages/PyQt4/uic/uiparser.py", line 
88, in __init__
     self.factory = QObjectCreator(creatorPolicy)
   File "/Library/Python/2.5/site-packages/PyQt4/uic/objcreator.py", 
line 53, in __init__
     raise WidgetPluginError, "%s: %s" % (e.__class__, str(e))
WidgetPluginError: &lt;type 'exceptions.NameError'&gt;: name 'QtCore' is not 
defined
---

I tried to play around with the widget's file, and surprisingly if I 
change the custom widget code to "from PyQt4 import xxx, QtGui" (where 
xxx can be anything except QtCore) I manage to get my python code 
generated, and it also appears to work...

Is that a bug?
</description>
    <dc:creator>Marco Fabiani</dc:creator>
    <dc:date>2008-08-26T09:30:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12977">
    <title>SIP doesn't accept double for template parameter</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12977</link>
    <description>I can't instantiate a class template in a typedef with double for the
template parameter, why? See attached example.

Arve
</description>
    <dc:creator>Arve Knudsen</dc:creator>
    <dc:date>2008-08-25T20:31:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12975">
    <title>PyQt4.uic Error!!..</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12975</link>
    <description/>
    <dc:creator>Aminu D</dc:creator>
    <dc:date>2008-08-25T17:31:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12974">
    <title>Table Widget Problem v4.4.3</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12974</link>
    <description/>
    <dc:creator>Carr, David</dc:creator>
    <dc:date>2008-08-25T14:42:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12973">
    <title>Communication between a dialog and mainwindow</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12973</link>
    <description>Hi all,

I have an application a QMainWindow and a dialog. The dialog (it is a 
configuration dialog http://kushaldas.in/tmp/tr.png ) shows a listbox and 
gives option to add/remove from the list. Now how can I access values from 
that list from mainwindow.

Kushal 
</description>
    <dc:creator>Kushal Das</dc:creator>
    <dc:date>2008-08-25T11:31:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12970">
    <title>Can't declare template attribute with SIP</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12970</link>
    <description>I have a class template (a struct really) which exposes an attribute
variable, but it doesn't appear SIP (version 4.7.8-snapshot-20080817)
supports this. Example:

template&lt;T&gt;
class Value
{
public:
    T value;
};

SIP reacts by saying that "T is undefined". Probably an omission in
SIP, since a corresponding getValue works? Also, specifying a concrete
type for the attribute works.

Arve
</description>
    <dc:creator>Arve Knudsen</dc:creator>
    <dc:date>2008-08-25T09:58:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12964">
    <title>Problem with QKeySequence</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12964</link>
    <description>Hi Phil

Just found this little bug...

 &gt;&gt;&gt; from PyQt4.QtGui import QKeySequence
 &gt;&gt;&gt; k = QKeySequence('Ctrl+H, Alt+V, Alt+9, Alt+Shift+R')
 &gt;&gt;&gt; for i in range(k.count()): print k[i]
...
67108936
134217814
134217785
167772242
 &gt;&gt;&gt; for i in k: print i
...

[snip long list of garbage numbers]

Traceback (most recent call last):
   File "&lt;stdin&gt;", line 1, in &lt;module&gt;
KeyboardInterrupt
 &gt;&gt;&gt;

But QKeySequences aren't meant to be iterable at all, right?

This is using qt 4.4.1, pyqt 4.4.3, sip 4.7.7.

Regards
Baz Walter



</description>
    <dc:creator>Baz Walter</dc:creator>
    <dc:date>2008-08-24T14:05:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12962">
    <title>Custom Widgets and __pyqtSignals__</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12962</link>
    <description>
Hi, I am newbie in Python and pyQt, I hope this question is not too silly.

I am trying to write a custom widget in python/pyqt to be used inside
QtDesigner. Everything seems to work fine (i followed the tutorials and
examples available), except for the signals: when I use __pyqtSignals__ =
("mysignal(double)"), the widget ends up having one signal for each letter
of "mysignal(double)", parenthesis included, like it cannot understand that
this is a string. And if I had 2 signals, designer crashes when I try to add
my custom widget.

This is probably just a stupid problem, but is driving me crazy...any
suggestion?
Thank you!
</description>
    <dc:creator>himork</dc:creator>
    <dc:date>2008-08-24T11:03:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12961">
    <title>can't get QX11EmbedContainer to show in QMainWindow</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12961</link>
    <description>i'm working on demonstration of using ipython interactive shell in
rapid development of PyQt4 applications. it works as charm.. until ;)
at some moment i embed terminal window where ipython is running... it
works fine when i embed it into regular QWidget but i can't get it
into QMainWindow...

in QMainWindow i have QWidget in CentralWidget with QVBoxLayout... the
upper part is custom QGraphicsItem represented in QGraphicsView of one
QGraphicsScene... so far so good... in the bottom part i want to have
QX11EmbedContainer with terminal and ipython... it doesn't show... i
tried embedding it before showing either QMainWindow, QWidget or
QX11EmbedContainer and showing any of these in any particular order
(ie. first showing QX11EmbedContainer, then addWidget into QWidget,
showing it and then showing QMainWindow and at last
QMainWindow.setCentralWidget(QWidget))

i also tried to to embed QX11EmbedContainer into QDockWidget.. the
same like CentralWidget.. it goes off from screen but it doesn't
show in the qt widget....

in every case i tried both embedding windows as embedClient(0x2800006)
or wid = container.winId() and then QProcess.start with right list of
parameters.... when it works it works both way as expected...

is there any particular right way to do that? any suggestions?

the code is at:
http://paste.lisp.org/display/65729

the sooperlooper_qt.py is my custom QGraphicsItem and the one can use
any QLabel or something like that... it doesn't really matter...
</description>
    <dc:creator>Nenad Romic - Marcell</dc:creator>
    <dc:date>2008-08-23T10:21:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12958">
    <title>Cross-thread signal connections</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12958</link>
    <description/>
    <dc:creator>Jason Voegele</dc:creator>
    <dc:date>2008-08-22T18:29:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12945">
    <title>multiple signal connect</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12945</link>
    <description/>
    <dc:creator>Ruben Fonseca</dc:creator>
    <dc:date>2008-08-20T15:17:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12944">
    <title>sizeHint access in Designer?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12944</link>
    <description>
I can't seem to find the answer to this seemingly simply question anywhere.
What I'd like to know is simply whether or not I can set a widget's size
hint from within Designer. I know I can just override sizeHint() once I
generate the code, but it'd be nice if I could set it within Designer so
that my widgets don't get all funky when I add a layout manager.

Thanks,
skawaii

-----
Jason Cooper

Software Engineer

Northrop Grumman Intelligence Group (TASC)

</description>
    <dc:creator>skawaii</dc:creator>
    <dc:date>2008-08-20T17:55:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12943">
    <title>Problems with sqlite</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12943</link>
    <description/>
    <dc:creator>IloChab</dc:creator>
    <dc:date>2008-08-20T10:45:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12942">
    <title>Compiling PyQt on Mac OS X</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12942</link>
    <description>I'm having problems compiling PyQt on Mac OS X.


Library versions:

Mac OS X 10.4.11
Python 2.5.1
qt-mac-opensource-src-4.4.1
PyQt-mac-gpl-4.4.3
sip-4.7.8-snapshot-20080817


Commands used to compile SIP:

$ python configure.py -n -s MacOSX10.4u.sdk
$ make


Commands used to compile Qt:

$ ./configure -release -nomake examples -nomake demos -no-qdbus - 
universal -no-framework
$ make
$ sudo make install


Commands used to compile PyQt (this is where the problems start):

$ python configure.py -q /usr/local/Trolltech/Qt-4.4.1/bin/qmake -e  
QtCore -e QtGui

Results in the following output:

Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.4.3 (licensed under the GNU General  
Public
License) for Python 2.5.1 on darwin.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Checking to see if the QtGui module should be built...
QtDesigner module disabled with universal binaries.
Qt v4.4.1 free edition is being used.
SIP 4.7.8-snapshot-20080817 is being used.
The Qt header files are in /usr/local/Trolltech/Qt-4.4.1/include.
The shared Qt libraries are in /usr/local/Trolltech/Qt-4.4.1/lib.
The Qt binaries are in /usr/local/Trolltech/Qt-4.4.1/bin.
The Qt mkspecs directory is in /usr/local/Trolltech/Qt-4.4.1.
These PyQt modules will be built: QtCore QtGui.
The PyQt Python package will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages.
The Designer plugin will be installed in
/usr/local/Trolltech/Qt-4.4.1/plugins/designer.
The PyQt .sip files will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/bin.
Generating the C++ source for the QtCore module...
sip: sip/QtCore/qtimer.sip:54: SIP_RXOBJ_CON and SIP_SLOT_CON must  
both be given and at most once
Error: Unable to create the C++ code.


So I changed qtimer.sip line  54 from this:

     static void singleShot(int msec, SIP_RXOBJ_CON receiver / 
SingleShot/, SIP_SLOT_CON() member) ...

to this:

     static void singleShot(int msec, SIP_RXOBJ_CON, SIP_SLOT_CON()) ...


And run configure again, which results in this output:

Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.4.3 (licensed under the GNU General  
Public
License) for Python 2.5.1 on darwin.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Checking to see if the QtGui module should be built...
QtDesigner module disabled with universal binaries.
Qt v4.4.1 free edition is being used.
SIP 4.7.8-snapshot-20080817 is being used.
The Qt header files are in /usr/local/Trolltech/Qt-4.4.1/include.
The shared Qt libraries are in /usr/local/Trolltech/Qt-4.4.1/lib.
The Qt binaries are in /usr/local/Trolltech/Qt-4.4.1/bin.
The Qt mkspecs directory is in /usr/local/Trolltech/Qt-4.4.1.
These PyQt modules will be built: QtCore QtGui.
The PyQt Python package will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages.
The Designer plugin will be installed in
/usr/local/Trolltech/Qt-4.4.1/plugins/designer.
The PyQt .sip files will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/Library/Frameworks/Python.framework/Versions/2.5/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
sip: sip/QtGui/qapplication.sip:42: syntax error
Error: Unable to create the C++ code.


So I commented out the '%If (WS_X11) ...' block in qapplication.sip  
(since I'm not compiling against X11, and that block seems to be the  
holdup). At this point the configure succeeds. So I go on to the next  
step:

$ make
make[1]: Nothing to be done for `all'.
g++ -c -pipe -fPIC -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -Os -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/ 
Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/ 
usr/local/Trolltech/Qt-4.4.1/mkspecs/default -I/usr/local/Trolltech/ 
Qt-4.4.1/include/QtCore -I/usr/local/Trolltech/Qt-4.4.1/include -o  
sipQtCorecmodule.o sipQtCorecmodule.cpp
sip/QtCore/qobject.sip: In function 'int qtcore_py_to_qt_cpp 
(PyObject*, const sipSigArg*, void*)':
sip/QtCore/qobject.sip:1033: error: 'sipAssignInstance' was not  
declared in this scope
sip/QtCore/qobject.sip:1064: error: 'sipAssignMappedType' was not  
declared in this scope
sip/QtCore/qobject.sip: In function 'int qtcore_py_to_qt_cpp 
(PyObject*, const sipSigArg*, void*)':
sip/QtCore/qobject.sip:1033: error: 'sipAssignInstance' was not  
declared in this scope
sip/QtCore/qobject.sip:1064: error: 'sipAssignMappedType' was not  
declared in this scope
sip/QtCore/qobject.sip: In function 'PyObject*  
qtcore_PyArgumentStorage(const char*, PyObject*)':
sip/QtCore/qobject.sip:1279: error: 'sipParseType' was not declared  
in this scope
sip/QtCore/qobject.sip: In function 'PyObject*  
qtcore_PyArgumentStorage(const char*, PyObject*)':
sip/QtCore/qobject.sip:1279: error: 'sipParseType' was not declared  
in this scope
sip/QtCore/qobject.sip: In member function 'void PyQtProxy::unislot 
(void**)':
sip/QtCore/qobject.sip:1932: error: 'sipInvokeSlot' was not declared  
in this scope
sip/QtCore/qobject.sip:1939: error: 'SIP_SINGLE_SHOT' was not  
declared in this scope
sip/QtCore/qobject.sip: In static member function 'static PyObject*  
PyQtProxy::invokeSlot(const sipSlotConnection&amp;, void**)':
sip/QtCore/qobject.sip:1970: error: 'sipInvokeSlot' was not declared  
in this scope
sip/QtCore/qobject.sip: In member function 'void PyQtProxy::unislot 
(void**)':
sip/QtCore/qobject.sip:1932: error: 'sipInvokeSlot' was not declared  
in this scope
sip/QtCore/qobject.sip:1939: error: 'SIP_SINGLE_SHOT' was not  
declared in this scope
sip/QtCore/qobject.sip: In static member function 'static PyObject*  
PyQtProxy::invokeSlot(const sipSlotConnection&amp;, void**)':
sip/QtCore/qobject.sip:1970: error: 'sipInvokeSlot' was not declared  
in this scope
sip/QtCore/qobject.sip: In function 'const QMetaObject*  
qtcore_qt_metaobject_worker(PyTypeObject*, sipWrapperType*)':
sip/QtCore/qobject.sip:3078: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip: In function 'const QMetaObject*  
qtcore_qt_metaobject_worker(PyTypeObject*, sipWrapperType*)':
sip/QtCore/qobject.sip:3078: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip:3143: error: 'sipParseType' was not declared  
in this scope
sip/QtCore/qobject.sip:3200: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip:3143: error: 'sipParseType' was not declared  
in this scope
sip/QtCore/qobject.sip:3200: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip: In function 'const QMetaObject*  
qtcore_qt_metaobject(sipWrapper*, sipWrapperType*, const QMetaObject*)':
sip/QtCore/qobject.sip:3420: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip: In function 'PyObject*  
qtcore_staticMetaObject_helper(PyObject*)':
sip/QtCore/qobject.sip:3432: error: 'sipIsExactWrappedType' was not  
declared in this scope
sip/QtCore/qobject.sip: In function 'const QMetaObject*  
qtcore_qt_metaobject(sipWrapper*, sipWrapperType*, const QMetaObject*)':
sip/QtCore/qobject.sip:3420: error: 'struct _sipTypeDef' has no  
member named 'td_qt'
sip/QtCore/qobject.sip: In function 'PyObject*  
qtcore_staticMetaObject_helper(PyObject*)':
sip/QtCore/qobject.sip:3432: error: 'sipIsExactWrappedType' was not  
declared in this scope
sip/QtCore/qobject.sip: In function 'PyObject* func_pyqtSignature 
(PyObject*, PyObject*)':
sip/QtCore/qobject.sip:583: error: 'sipKwds' was not declared in this  
scope
sip/QtCore/qobject.sip: In function 'PyObject* func_pyqtSignature 
(PyObject*, PyObject*)':
sip/QtCore/qobject.sip:583: error: 'sipKwds' was not declared in this  
scope
lipo: can't open input file: /var/tmp//ccgUWyW3.out (No such file or  
directory)
make[1]: *** [sipQtCorecmodule.o] Error 1
make: *** [all] Error 2


What's going on here? I never had this much trouble compiling PyQt  
before. Have a missed something along the way? Thanks in advance for  
helping.

~ Daniel

</description>
    <dc:creator>Daniel Miller</dc:creator>
    <dc:date>2008-08-19T20:54:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12940">
    <title>unexpected behavior from winId() and QSpacerItem</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12940</link>
    <description>Ok, so I was making a simple widget that had a little 32x32 png image 
that you can pick up and move around.  I do this by setting the mouse 
cursor to a pixmap cursor of the image when mousePressEvent is 
triggered, and reverting back when mouseReleaseEvent is triggered.  I 
also want to track the mouse with mouseMoveEvent for later 
functionality.  For the functionality I want, the mouse needs to 
continue to be tracked when it leaves the widget/window (and hopefully 
keeps the icon).  This was easier to get working than I had thought, but 
when I started adding functionality and incorporated it into a window I 
ran into some strange behavior.  If I have my widget in a gridLayout 
with a QSpacerItem with a QSizePolicy.Expanding property and also call 
winId() for my widget, the tracking/cursor break when the mouse goes out 
of the window.  The behavior is even different I move the mouse out the 
top vs. out the sides and bottom, as the former doesn't even resume 
tracking when the mouse comes back onto the window. 

The appended code reproduces the behavior (I'm using PyQt4.4.3 and 
Python2.5.2, on WindowsXP Pro). 

If you comment out the call to self.winId(), than the code works as 
expected.  Also, if you leave the call to self.winId() but remove the 
",QtGui.QSizePolicy.Expanding" from the QSpacerItem constructor the code 
works correctly.  It seems that having both of them breaks something.  
Is this a Bug, or am I just missing something?



from PyQt4 import QtGui, QtCore
import sys

class Drag(QtGui.QLabel):
    def __init__(self, parent=None):
        QtGui.QLabel.__init__(self, parent)
        self.image = QtGui.QPixmap('dead.png')
        self.wfc = QtGui.QCursor(self.image)
        self.setPixmap(self.image)
        self.winId()
       
    def mousePressEvent(self, event):
        print 'set'
        self.setPixmap(QtGui.QPixmap())
        self.setCursor(self.wfc)
        event.accept()
       
    def mouseMoveEvent(self, event):
        print event.pos()
        event.accept()

    def mouseReleaseEvent(self, event):
        print 'rel'
        self.setCursor(QtCore.Qt.ArrowCursor)
        self.setPixmap(self.image)
        event.accept()
 

if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
    win = QtGui.QWidget()
    lay = QtGui.QGridLayout(win)
    dw = Drag(win)
    lay.addWidget(dw)
    lay.addItem(QtGui.QSpacerItem(13,20,QtGui.QSizePolicy.Expanding), 1, 1)
    win.show()
    win.resize(200,200)
   
    app.exec_()

from PyQt4 import QtGui, QtCore
import sys

class Drag(QtGui.QLabel):
    def __init__(self, parent=None):
        QtGui.QLabel.__init__(self, parent)
        self.image = QtGui.QPixmap('dead.png')
        self.wfc = QtGui.QCursor(self.image)
        self.setPixmap(self.image)
        self.winId()
        
    def mousePressEvent(self, event):
        print 'set'
        self.setPixmap(QtGui.QPixmap())
        self.setCursor(self.wfc)
        event.accept()
        
    def mouseMoveEvent(self, event):
        print event.pos()
        event.accept()

    def mouseReleaseEvent(self, event):
        print 'rel'
        self.setCursor(QtCore.Qt.ArrowCursor)
        self.setPixmap(self.image)
        event.accept()
  

if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
    win = QtGui.QWidget()
    lay = QtGui.QGridLayout(win)
    dw = Drag(win)
    lay.addWidget(dw)
    lay.addItem(QtGui.QSpacerItem(13,20,QtGui.QSizePolicy.Expanding), 1, 1)
    win.show()
    win.resize(200,200)
    
    app.exec_()
</description>
    <dc:creator>Brian Parma</dc:creator>
    <dc:date>2008-08-19T08:03:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12938">
    <title>QHttp-request not finished</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/12938</link>
    <description/>
    <dc:creator>Jan Holthuis</dc:creator>
    <dc:date>2008-08-18T18:19:25</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.python.pyqt-pykde">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.pyqt-pykde</link>
  </textinput>
</rdf:RDF>
