[PyQt] How to show just a picture upon a window
projetmbc
projetmbc at club-internet.fr
Mon Apr 6 23:31:10 BST 2009
Hello,
I would like to show just a picture upon my window. I've find the
following method.
============================
pixmap = QtGui.QPixmap("Collines.jpg")
splash = QtGui.QSplashScreen(pixmap)
splash.setMask(pixmap.mask())
splash.show()
splash.showMessage(u'')
t = time.sleep(1)
============================
This works but I would like to do something more usefull.
1. The picture must appear near the position of the mouse.
2. The picture must be visible for a time such 5 seconds
except if the user do something like pressing a key, or clicking on the
picture.
Every klind of information is welcome.
Best regards.
Christophe.
More information about the PyQt
mailing list