Hi,
I have been porting an editor that is strongly graphics based to the new
version. Thought it would be useful to reflect some of the problems I
had with the conversion. Firstly there were a large number of small
changes. Mostly renaming due to the changes made by the Trolltech
people.
Hi,
What's the difference between
finished() and terminated() methods of a QThread ?
Thanks.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
In the class below (where I use . for brevity) when I have the Activation
class not as a QObject but as a plain python class, the loginReponseRcvd()
gets called. As soon as I make it a QObject (so I can emit) it stops
working. The commented out line I tried and it told me that the underlining
C++
Nevermind.I for got to call the base class initializer.
i.e. apply(QObject.__init__, (self, ) + ())
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Hihn
Sent: Monday, July 23, 2007 11:24 AM
To: pyqt@riverbankcomputing.com
Subject: [PyQt] QObject confusion
On 23.07.07 11:23:39, Jason Hihn wrote:
In the class below (where I use . for brevity) when I have the Activation
class not as a QObject but as a plain python class, the loginReponseRcvd()
gets called. As soon as I make it a QObject (so I can emit) it stops
working. The commented out line I
Hello Jason
First of all, is Activation.http a QObject? I think what you want to do is:
QObject.connect(self.http, SIGNAL('done(bool)'), self.loginResponseCvd)
QObject.connect is a static class method, so there's no point in calling it
on an Activation instance. When it comes to emit however,
On 7/23/07, Jason Hihn [EMAIL PROTECTED] wrote:
Nevermind…I for got to call the base class initializer.
i.e. apply(QObject.__init__, (self, ) + ())
Aha, that was the next suggestion on my list :] But it wasn't entirely clear
what was going on ..
Arve
--
On Friday 20 July 2007 17:06, Tom Brown wrote:
1) compiled Qt 4.3.0
2) manually compiled the psql driver in the Qt tree
3) compiled SIP
4) tried to install SIP, which failed
'mingw32-make install' in the SIP directory failed with these errors:
C:\sip-snapshot-20070714mingw32-make install
I have manually compiled the psql driver for Qt 4.3.0. I then compiled and
installed SIP and PyQt4. Then I tried running my application:
python -O test192cfm.py
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
...
I am missing an essential step. Can anybody please
On Monday 23 July 2007 10:24, Tom Brown wrote:
I have manually compiled the psql driver for Qt 4.3.0. I then compiled and
installed SIP and PyQt4. Then I tried running my application:
python -O test192cfm.py
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
...
On Montag, 23. Juli 2007, Gudjon I. Gudjonsson wrote:
Hi Detlev
The new configuration file worked perfectly, Thanks a lot.
Torsten has abandoned the Debian Eric package and I am trying to
upgrade it to Eric 4. He has made some patches and some of them seem
not to be Debian specific. May
The next major releases of SIP and PyQt4 will be made this week (hopefully).
Is there anything I've forgotten in the current snapshots?
Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
On 23/07/2007 20.37, Phil Thompson wrote:
The next major releases of SIP and PyQt4 will be made this week (hopefully).
Is there anything I've forgotten in the current snapshots?
I have a couple of testcases which highlight some possible memory leaks in SIP
(or misunderstanding in the
Hi,
You may ask if it's a suicidal question or whatever, I just wanted to
give you my impressions. I don't want to hurt anyone.
Usually when I subscribe to a mailing list, I enjoy answering others
questions and asking mine too, but not here for the moment.
I asked several questions
Well, normally I don't receive a copy of my answers so I don't even know if my
posts go to the list, but here goes.
I asked several questions here, without any answer. Some were pretty
simple, some just suggest I was on a wrong direction (in this case, I'll
have liked someone told me why),
I've released the alpha2 version of the PyQt GPL Windows installer. The URL
is...
http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-Py2.5-gpl-4.3-a2.exe
Changes since the last release...
- Uses current PyQt, SIP and QScintilla snapshots
- Includes PyQwt
- Includes support for SSL
I think you are drawing your pixmap off the edge of the scene. Try the
following:
scene = QtGui.QGraphicsScene()
#scene.setSceneRect(-600,-600, 600,600)
scene.setSceneRect(-600, -600, 1200, 1200)
pic = QtGui.QPixmap(:/images/triangle.png)
scene.addItem(QtGui.QGraphicsPixmapItem(pic))
view =
Hi Guys!!
I've been progressing a lot lately with my app in PyQT (
http://opencoffee.lnxteam.org), but like i am newbie in programming world
and Python/QT, somethings cost me to understand. And i read the classes from
the PyQT site, but i dont know c++ and i not pretend to learn it, is why i
On Mon Jul 23 23:06:34 BST 2007, Adam Tenderholt wrote:
I think you are drawing your pixmap off the edge of the scene. Try the
following:
scene = QtGui.QGraphicsScene()
#scene.setSceneRect(-600,-600, 600,600)
scene.setSceneRect(-600, -600, 1200, 1200)
pic =
Am Montag, 23. Juli 2007 21:58 schrieb kib2:
Hi,
You may ask if it's a suicidal question or whatever, I just wanted to
give you my impressions. I don't want to hurt anyone.
Usually when I subscribe to a mailing list, I enjoy answering others
questions and asking mine too, but not here for
David Boddie a écrit :
That might fix the problem. Another question worth asking is: have the
resources been set up correctly? The assignment,
pic = QtGui.QPixmap(:/images/triangle.png)
refers to an image in a resource that is usually stored in a module
and imported somewhere in an
On Mon Jul 23 23:29:37 BST 2007, Gustavo A. Díaz wrote:
I've been progressing a lot lately with my app in PyQT (
http://opencoffee.lnxteam.org), but like i am newbie in programming world
and Python/QT, somethings cost me to understand. And i read the classes from
the PyQT site, but i dont
On Mon Jul 23 23:55:57 BST 2007, kib2 wrote:
Thanks for your hints,
in fact the problem has been solved yesterday...
My scene was refering to nothing at all, add a self like this :
scene = QtGui.QGraphicsScene(self)
and the image appears.
Ah, it seems that you were setting up the
Hans-Peter Jansen a écrit :
Without going into detailed issues of your posts, and beside what Dave
already addressed, two more points always annoy _me_ from your posts:
- you provide some sniplets from your issue, and seem to expect, that
supporters will mind parse them and be able to
Gustavo A. Díaz schrieb:
Another thing i wan to implement is to click on the systray of the app
and
hide it, and click again to show it. I was trying but without
success...
this is how I've done it:
Qt.QObject.connect(self.systray,
Qt.SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
On Monday 23 July 2007 5:55 pm, kib2 wrote:
Now, Dave just told me it was a bad idea to put an image on a
QGraphicsView. I've already done it inside a Label, but I've no controls
on it. He suggested I've to write my own widget (from Qlabel or QWidget)
for that, but I don't see why it's a bad
On Monday 23 July 2007 12:44:48 +0200, Preisig, Heinz A wrote:
I have been porting an editor that is strongly graphics based to the new
version. Thought it would be useful to reflect some of the problems I
had with the conversion. Firstly there were a large number of small
changes. Mostly
On Monday 23 July 2007 16:35:58 kib2 wrote:
Hi,
What's the difference between
finished() and terminated() methods of a QThread ?
Thanks.
Terminated means it was closed using terminate while still working.
Finished means it has finished its work.
On 24.07.07 01:11:17, kib2 wrote:
Hans-Peter Jansen a écrit :
Without going into detailed issues of your posts, and beside what Dave
already
addressed, two more points always annoy _me_ from your posts:
- you provide some sniplets from your issue, and seem to expect, that
supporters
On Monday 23 July 2007 21:58:05 kib2 wrote:
I asked several questions here, without any answer.
With a simple filter in my mail reader : since beginning of may, 7 questions,
2 unanswered.
One about vista speed problems, and I'm afraid it'll be hard to find somebody
with vista to help you.
One
David Boddie a écrit :
Ah, it seems that you were setting up the scene from with a method of
a class. Your problem was that, when the method returned, the scene
was garbage collected. Giving it a parent of self keeps it alive
thanks to Qt's parent-child object management. Alternatively, you
On Monday 23 July 2007 10:43, Tom Brown wrote:
On Monday 23 July 2007 10:24, Tom Brown wrote:
I have manually compiled the psql driver for Qt 4.3.0. I then compiled
and installed SIP and PyQt4. Then I tried running my application:
python -O test192cfm.py
QSqlDatabase: QPSQL driver not
On Tue Jul 24 00:41:36 BST 2007, Tom Brown wrote:
Ok, maybe I need to configure Qt with -plugins-sql-psql. I'm trying that
out right now.
I've got this figured out. This is more of a Qt issue, but since I started
the thread here, I'll post my solution here. It may prove useful to someone
Pierre Ducroquet a écrit :
With a simple filter in my mail reader : since beginning of may, 7 questions,
2 unanswered.
One about vista speed problems, and I'm afraid it'll be hard to find somebody
with vista to help you.
True, that's one of the reasons I switched back to XP.
One about
Andreas Pakulat a écrit :
So you don't want to spend the time on stripping down your code to a
minimal example (often you find the error already during that process),
but expect others (read us) to spend their precious free time reading
your questions and trying to make any sense of the
On Monday 23 July 2007 16:45, David Boddie wrote:
On Tue Jul 24 00:41:36 BST 2007, Tom Brown wrote:
Ok, maybe I need to configure Qt with -plugins-sql-psql. I'm trying
that out right now.
I've got this figured out. This is more of a Qt issue, but since I
started the thread here, I'll
Ok, nice tip Necoro! Thanks, but is not what i wanted.
I have already a context menu which shows and hide the app, but i want to
replace that by doing on click on the systrayicon (left button click) to
show and to hide:
Click on systray, hide...
Click on systray, show...
and so on and on...
By
Ok, never mind, now i did what i wanted with:
if reason != QtGui.QSystemTrayIcon.Context:
self.hide()
So when i click in the tray, will hide and with another click will show.
Thats perfects, now i have left the problem about closing the app and not
being hide intro the systray
Is
$python -E
Python 2.5.1 (r251:54863, May 29 2007, 07:42:28)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type help, copyright, credits or license for more information.
import PyQt4.Qt as Qt
print Qt.QCoreApplication.instance()
None
print Qt.qApp
PyQt4.QtGui.QApplication object at 0x2b78540079e0
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oh - sorry ...
I just did not realize, that my code only minimized it - and I had a
different callback, which hides the window on minimization - sorry
Regards,
Necoro
Gustavo A. Díaz schrieb:
Ok, nice tip Necoro! Thanks, but is not what i wanted.
Here is what i did, and works (i didn't posted all in my last reply, sorry):
def OnActivated(self, reason):
if reason != QtGui.QSystemTrayIcon.Context:
self.hide()
if self.windowState() Qt.WindowMinimized:
self.showNormal()
else:
Yeah! i was thiking kind of it!
That worked good! thanks for guide this newbie developer :P
Now, for the systray i have only the close issue.
Thanksss!!
Cheers!
René 'Necoro' Neumann escribió:
Gustavo A. Díaz schrieb:
Here is what i did, and works (i didn't posted all in my last reply,
On Tue, 24 Jul 2007 06:51:08 +0200
Gerard Vermeulen [EMAIL PROTECTED] wrote:
import PyQt4.Qt as Qt
print Qt.QCoreApplication.instance()
None
print Qt.qApp
PyQt4.QtGui.QApplication object at 0x2b78540079e0
This must be a SIP problem, because qApp also returns an
QApplication instance
43 matches
Mail list logo