简体   繁体   English

有关QtNetworking和QtWebkit的PyQT4或PySide教程

[英]PyQT4 or PySide tutorial about QtNetworking and QtWebkit

I'm trying to find a PyQT or PySide tutorial that covers QtNetworking and QtWebKit, I can only find tutorials about QtCore and some tutorials how to create bottons and other similar gui. 我试图找到涵盖QtNetworking和QtWebKit的PyQT或PySide教程,我只能找到有关QtCore的教程以及一些如何创建botton和其他类似gui的教程。 But I'm looking a bit different thing. 但是我看起来有些不同。

While not really the answer to your question - when faced with the same basic problem - here are the resources I used to get up and running: 虽然不是您问题的真正答案-当遇到相同的基本问题时-以下是我用来启动和运行的资源:

  • Although a little behind version-wise, a great book with lots of examples and practical design methodology - Rapid UI Programming with Python and Qt - It's written for PyQt, but easily applicable for PySide with minor changes. 尽管这是一本不错的书,但还是一本不错的书,里面有很多示例和实用的设计方法-《 使用Python和Qt进行快速UI编程》 -是为PyQt编写的,但只需稍作改动即可轻松应用于PySide。

  • pyside-examples - The pyside-examples collection was usually my first stop in figuring out to write PySide code. pyside-examples -pyside-examples集合通常是我弄清楚编写PySide代码的第一步。 They have Python analogs of the C++ examples and cover most subject matters. 它们具有C ++示例的Python类似物,涵盖了大多数主题。 However, specifically, the qwebkit content is brief at best. 但是,具体来说, qwebkit的内容充其量只是简短的内容。

  • PySide API documentation - The PySide content used to be easily available at pyside.org (or something similar..), now it's at a funky github address - http://qt-project.org/wiki/PySide , which for any paranoid URL hawks out there you can verify as published @ the new Qt project webpage http://qt-project.org/wiki/PySide PySide API文档 -使用容易获得的pyside.org(或类似的东西..)的PySide内容,现在是在一个时髦的GitHub的地址 - http://qt-project.org/wiki/PySide ,这对于任何偏执URL鹰在那里,您可以验证其是否已发布@新的Qt项目网页http://qt-project.org/wiki/PySide

  • If you don't know C++ Qt and you're picking up pyside first - consider familiarizing yourself with the C++ content. 如果您不了解C ++ Qt,并且首先要学习pyside,请考虑使自己熟悉C ++内容。 There are a lot more tutorials and explanations regarding the C++ code than PySide (Or PyQt). 关于C ++代码的教程和解释比PySide(或PyQt)多得多。 If you understand MVC, signal/slot, async networking, and UI doodads - translating from PySide to Qt C++ won't be painful. 如果您了解MVC,信号/插槽,异步网络和UI杂物-从PySide转换为Qt C ++不会感到痛苦。 But without those skills, the learning curve can be a bit steep initially. 但是如果没有这些技能,学习曲线一开始可能会有些陡峭。 There's some stuff to consider like Qt's UI event loop, Qt threads vs. Python threads, etc. (When in doubt, do it the 'Qt way') 有一些事情要考虑,例如Qt的UI事件循环,Qt线程与Python线程等。(如有疑问,请以“ Qt方式”进行操作)

  • Look at other people's programs - github, googlecode and gitorious have a fair amount of PySide/PyQt projects to pour through. 查看其他人的程序-github,googlecode和gitorious有大量的PySide / PyQt项目可以通过。

  • If you want a 'kitchen sink' example that exercises a heap of PyQt/PySide's capabilities - I'd suggest spyderlib . 如果您想要一个“厨房水槽”示例来练习PyQt / PySide的大量功能-我建议使用spyderlib it's tough to 'extract' things out of it to reuse, but it does give you a nice foundation to start making changes, re-running the code and observing the changes. 很难从中“提取”出来以进行重用,但这确实为您提供了一个良好的基础,可以开始进行更改,重新运行代码并观察更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM