http://www.qtopia.org.cn/doc/qiliang.net/qt/tutorial2-05.html