简体   繁体   English

PyQt4自定义小部件

[英]PyQt4 Custom Widgets

Are there any good PyQt4 custom widgets like at Qt-Apps.org ? 是否有Qt-Apps.org等任何好的PyQt4自定义小部件?

I would like to start making PyQt custom widgets but online resources that I find don't seem to be clear 我想开始制作PyQt自定义小部件,但是我发现的在线资源似乎还不清楚

For example, Trolltech's and Zetcode's don't seem to be related in any way at all. 例如, TrolltechZetcode似乎根本没有任何关联。

Thanks for any input :) 感谢您的任何输入:)

There should be PyQt examples of all C++ Qt examples in your PyQt4 distribution. PyQt4发行版中应该有所有C ++ Qt示例的PyQt示例。 I have them here: /usr/share/doc/python-qt4-doc/examples . 我在这里: /usr/share/doc/python-qt4-doc/examples Theye are quite good for the start. 你们一开始就很好。 When you understand them, it should also be fairly easy for you to port some C++ examples to PyQt code or turn C++ custom widgets to C++. 当您理解它们时,将某些C ++示例移植到PyQt代码或将C ++自定义小部件转换为C ++也应该相当容易。

Are you looking for tutorials on making custom PyQt widgets, or looking for a library of them? 您是在寻找有关制作自定义PyQt小部件的教程,还是在寻找它们的库?

I've been developing a library of reusable custom widgets if that's what you're looking for - at somepoint will be getting to the tutorials, but they aren't there yet. 如果您正在寻找的话,我一直在开发可重用的自定义小部件库-有时会进入本教程,但目前还没有。

Check out projexsoftware.com, specifically the ProjexUI framework: 请访问projexsoftware.com,特别是ProjexUI框架:

http://dev.projexsoftware.com/projects/projexui http://dev.projexsoftware.com/projects/projexui

http://docs.projexsoftware.com/sdk-reference/projexui-sdk http://docs.projexsoftware.com/sdk-reference/projexui-sdk

In looking at it, I'll need to get some images up there...but there's a Calendar widget, Gantt Chart, View plugin system, Node view, Chart widgets, along with a number of extensions to the base Qt widget classes. 在查看它时,我需要在其中获取一些图像...但是这里有一个Calendar小部件,Gantt Chart,View插件系统,Node view,Chart小部件以及一些基本Qt小部件类的扩展。

Also the easiest way to see the majority of the widgets is in the Qt Designer - so if you have it setup to work with PyQt plugins, wherever you install the projexui library you can add the /path/to/projexui/designer/build to your PYQTDESIGNERPATH and it'll load designer with our plugins. 同样,查看大多数窗口小部件的最简单方法是在Qt Designer中-因此,如果您将其设置为与PyQt插件配合使用,则无论在哪里安装projexui库,都可以将/ path / to / projexui / designer / build添加到您的PYQTDESIGNERPATH,它将为我们的插件加载设计器。

online resources about PyQt aren't really that rampant, so any information/projects would be welcomed. 有关PyQt的在线资源并不是真的那么猖ramp,因此任何信息/项目都将受到欢迎。 Don't hesitate to post links to your upcoming widgets or anything else. 不要犹豫,发布指向即将发布的小部件或其他任何内容的链接。

I would be really glad to work on that with you as i'm learning more about pyqt as well. 我也很高兴与您一起解决这一问题,因为我也正在学习有关pyqt的更多信息。

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

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