<div dir="ltr">That's right, inheritance goes like this:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>QCoreApplication -> QGuiApplication -> QApplication </div><div><br></div></blockquote>And clipboard is a public static member of QGuiApplication</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 24, 2019 at 10:13 AM Tiger-222 <<a href="mailto:contact@tiger-222.fr">contact@tiger-222.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Oh I see what is missing from my original message :o<br>
This is the snippet that fails on a segfault:<br>
<br>
>>> from PyQt5.QtCore import QCoreApplication<br>
>>> from PyQt5.QtWidgets import QApplication<br>
>>> with QCoreApplication([]) as app:<br>
... print(QApplication.clipboard().text())<br>
<br>
And using QApplication.instance().clipboard().text() will return<br>
"AttributeError: 'QCoreApplication' object has no attribute 'clipboard'".<br>
<br>
The clipboard is only something used in the GUI world? And so it is not<br>
accessible via QCoreApplication?<br>
<br>
<br>
<br>
-----<br>
Mickaël Schoentgen. <br>
[FR] Personal blog: <a href="http://www.tiger-222.fr" rel="noreferrer" target="_blank">http://www.tiger-222.fr</a> <br>
--<br>
Sent from: <a href="http://python.6.x6.nabble.com/PyQt-f1792048.html" rel="noreferrer" target="_blank">http://python.6.x6.nabble.com/PyQt-f1792048.html</a><br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div>