Vassistx display QT Enumeration

Source: Internet
Author: User

In qt4.6.3, qnamespace. h stores many important enumeration and enumeration variables of qt4, such as key, key_escape, key_enter, and framelesswindowhint.

My IDE is vs2005, QT is 4.6.3, the system is XP SP3, and vassistx is 10.6.1833 (the latest version ).

I found in programming that QT is a namespace, but QT: The following smart prompts are inaccurate, for example, key_escape is not identified.

# Ifndef q_moc_run
Namespace
# Else
Class q_core_export
# Endif

Qt {

.....

}

I have read qnamespace. H of a previous version (I don't know what version, sorry), and QT in it is a class,

class Q_EXPORT Qt {.......}

Therefore, it is no problem to directly write key_escape and framelesswindowhint, but currently QT is not a class. It is a namespace and vassistx recognizes Qt as a namespace. unless you use using namespace QT; otherwise, the original code key_escape must be changed to QT: key_escape, but vassistx cannot be correctly identified. Manual enumeration names will inevitably make mistakes.

Fortunately, QT: it cannot be correctly identified, but QT-> can be correctly identified. If your vassistx option's "Convert dot to-> (in C/C ++) "selected, you can also use QT. to identify key_escape.

Now you can call QT. key_escape and change it to QT: key_escape, Which is helpless !!!!!!!!!!

I want to know why!

 

 

 

 

 

 

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.