In the process of learning QT, because I look at the information is QT3, and I installed QT is 4.6.0 version, so there will be some differences in the details. In this blog, I will keep statistics to update these subtle differences. Oh, but feel QT4 help document did really great ~
The current findings are as follows:
1, Setcaption function in 4, but can be replaced with setwindowstitle function, the same parameters.
2, Qglwidget Qdialog, such as the big guy's constructor some difference, specific what to look to help the document better.
3, the Qimage constructor has changed. One of the constructors in QT4 is as follows:
Qimage m_image=qimage (128,128,QIMAGE::FORMAT_ARGB32);
Here just generated a 128*128 RGB picture, there is no content,
M_image.fill (0xFFFFFF); and then it's a white picture.
4, for other do not know how to deal with the function in the QT3, you can add a in the project. Pro
QT + = Qt3support
This will not be an error, I think, how much will affect the performance of the program, as far as the impact of the functions of the function to say.
Beyond C + + original articles, reproduced please indicate the source and keep the original link
This article link: http://www.beyondc.cn/qt4-with-qt3-some-of-the-differences-between.html