<div dir="ltr">Also, some functionalities are much more complete in Qt, and there's more consistency using a single (almost always) coherent framework than different (external) modules, which differ by syntax, naming convention, argument order and error handling.<div>Finally, a more comprehensive cross-platform support (for example regarding path support, which always uses "/" and doesn't need complex handling with os.path.join and os.path.sep).</div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno ven 17 ago 2018 alle ore 18:05 Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Aug 17, 2018 at 11:59:17AM -0400, Christopher Probst wrote:<br>
> Beyond signals and slots, is there any advantage in using the non-GUI Qt<br>
> classes in a PyQt application. Why would I use QSQLDatabase, the network<br>
> module if Python offers it already?<br>
<br>
There are sometimes reasons - some examples:<br>
<br>
- In general, things being async, i.e. not blocking your GUI (QProcess,<br>
networking, QSerial vs. PySerial, etc.)<br>
- QSqlDatabase because you want to show it in a QTableView<br>
- Better integration with Qt in general (e.g. QThread)<br>
- Some functionality which is just nicer in Qt (QUrl vs. a urllib.parse<br>
tuple)<br>
- Some functionality which doesn't exist in Python<br>
<br>
Often, the main drawback is the more complex error handling, as you get<br>
manual error checks instead of exceptions.<br>
<br>
Florian<br>
<br>
-- <br>
<a href="https://www.qutebrowser.org" rel="noreferrer" target="_blank">https://www.qutebrowser.org</a> | <a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> (Mail/XMPP)<br>
GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">https://the-compiler.org/pubkey.asc</a><br>
I love long mails! | <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net">http://www.jidesk.net</a></div>