Some differences between QT4 and QT3

Source: Internet
Author: User
Tags constructor

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.