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!