I've already try that but I have the following message :
QWidget: Must construct a QApplication before a QPaintDevice
Christophe.
Demetrius Cassidy a écrit :
> from PyQt4.QtGui import QApplication
>
> clipboard = QApplication.clipboard()
> clipboard.setText('mytext')
>
> see http://doc.trolltech.com/4.5/qapplication.html
>