Qt depth: Unknown types, attributes, and flags

Source: Internet
Author: User

The difference between qter experts and beginners is: Do you know or do not know

QT is not a development language, so it doesn't matter. However, there are differences in the use of his qter, perhaps in the object-oriented language itself, or in practical experience. For QT itself, the most significant difference between a master and a novice is that the master knows more than the novice.

Let's make a small test to see how much you know about the following knowledge.

 

Applicationattribute

Application-level attributes, as the name implies. Among them, the most commonly used may be QT: aa_s60dontconstructapplicationpanes. Especially after V5, if you want to develop a pure touch screen app, setting this attribute will not create status and softkey panes, optimized Program startup.

 

Textflag

The most common syntax is the short cut Syntax of QT: textshowmnemonic. Do you know what "& P" means?

 

Uieffect

Provides the effects of animated and fade, mainly used in the menu, tooltip popup Control

 

Widgetattribute

The most useful property settings include several aspects of the GUI. The following lists several common attributes:

Qt: wa_deleteonclose

Qt: wa_nosystembackground

Qt: wa_paintoutsidepaintevent

Qt: wa_quitonclose

Qt: wa_translucentbackground

 

Windowflags

(Usually used as a pop-up) window settings, popup or modal, splashscreen, You should know these concepts

 

Globalcolor

Some color tables that are frequently used

Qstring QT: escape (const qstring & plain)

Convert plain to the qstring of the HTML syntax

 

Others

There are many definitions in QT, which may vary depending on the needs. For more information, see the QT namespace of assitant.

 

 

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.