NO means no.
By default the vast majority of optional features in Qt are turned on by default. When building Qt you can choose to turn these off and doing so puts a define like QT_NO_ITEMVIEWS into the Qt headers (qfeatures.h) of the built libraries.
Application code can use these defines to avoid the features that are disabled but not essential to the program. Alternatively, fail to build if built with a library that has an essential feature compiled out
#ifndef QT_NO_IMAGEFORMAT_BMP
// do stuff with BMP format files
#endif
#ifdef QT_NO_IMAGEFORMAT_PNG
#error "Cannot compile without PNG support in the Qt library"
#endif
#ifndef QT_NO_IMAGEFORMAT_BMP
// do stuff with BMP format files
#endif
#ifdef QT_NO_IMAGEFORMAT_PNG
#error "Cannot compile without PNG support in the Qt library"
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks