Details
[Home]
Issue of the Standard # S0716
Brief
Default return value of QPixmapCache::cacheLimit() does not agree with documentation
Detailed Description
Description of QPixmapCache::cacheLimit() reads:
Returns the cache limit (in kilobytes).
The default setting is 1024 kilobytes.
But the implementation of QPixmapCache::cacheLimit() returned 10240 by default, that does not agree to the standard.
Example:
#include#include #include #include #include int main() { //PREAMBLE #ifdef Q_WS_X11 bool useGUI = getenv( "DISPLAY" ) != 0; #else bool useGUI = TRUE; #endif int app_argc = 1; char* app_argv[2]={"", NULL}; QApplication::setColorSpec(QApplication::ManyColor); QApplication* app = new QApplication(app_argc, app_argv, useGUI); QTimer::singleShot(100, app, SLOT(quit())); int cache_limit = QPixmapCache::cacheLimit(); if(cache_limit!=1024) std::cout<<"ERROR[QPixmapCache::cacheLimit() returned "< exec(); }
Problem location(s) in the standard
http://doc.trolltech.com/4.2/qpixmapcache.html#cacheLimit
Accepted
Reported to the Qt documentation team
Status
Исправлено в qt4 4.5
[Home]
»