一半君的总结纸

听话只听一半君

在PyQT里想reimplement某个class的method的时候如何知道应该怎么写

pyqt文档很少,但是qt文档很全,但有时候还是找不着例子,这时候只能去源码里找了

公司里的Qt版本暴低 …

>>> import PyQt4.QtCore as QtCore
>>> QtCore.PYQT_VERSION_STR
'4.6.1'
>>> QtCore.QT_VERSION_STR
'4.5.3'
# clone 所有源码, 比较大
git clone git://gitorious.org/qt/qt.git

# 看有哪些tags
> git tag -l
v4.5.1      
v4.5.2      
v4.5.3      
v4.6.0      
v4.6.0-beta1
v4.6.0-rc1  
v4.6.0-tp1  
v4.6.1      
v4.6.2      
v4.6.3      
v4.6.4      
v4.6.5      
v4.7.0      
v4.7.0-beta1
v4.7.0-beta2
v4.7.0-rc1  
v4.7.0-tp1  
v4.7.1      
v4.7.2      
v4.7.3      
v4.7.4      
v4.7.5      
v4.7.6      
v4.8.0      
v4.8.0-beta 
v4.8.0-rc1  
v4.8.0-tp1  
v4.8.1      
v4.8.2      
v4.8.3      
v4.8.4      
v4.8.5      
v4.8.6

# checkout公司里使用的版本
git checkout tags/v4.5.3 

又看了下家里破笔记本上的CentOS 7, repo里默认是

>>> import PyQt4.QtCore as QtCore
>>> QtCore.PYQT_VERSION_STR
'4.10.1'
>>> QtCore.QT_VERSION_STR
'4.8.5'
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: