Have you tried constructing a QApplication first?<br><br><div class="gmail_quote">On Sat, Apr 25, 2009 at 8:24 PM, projetmbc <span dir="ltr"><<a href="mailto:projetmbc@club-internet.fr">projetmbc@club-internet.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've already try that but I have the following message :<br>
QWidget: Must construct a QApplication before a QPaintDevice<br>
<br>
Christophe.<br>
<br>
<br>
Demetrius Cassidy a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
from PyQt4.QtGui import QApplication<br>
<br>
clipboard = QApplication.clipboard()<br>
clipboard.setText('mytext')<br>
<br>
see <a href="http://doc.trolltech.com/4.5/qapplication.html" target="_blank">http://doc.trolltech.com/4.5/qapplication.html</a><br>
<br>
</blockquote>
<br></div><div><div></div><div class="h5">
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br>