I'm at ec03058fa5b84b4570a2158bf2179f7ba4d83b99 and I see something I can not explain:
QApplication app(argc, argv); cerr << "style:" << qPrintable(QApplication::style()->objectName()) << std::endl; QPalette pal = QApplication::palette(); cerr << "dark:" << qPrintable(pal.brush(QPalette::Dark).color().name()) << endl; this code tells me the style I use is "fusion" and the "dark" value is #000000 However using this code extern QPalette qt_fusionPalette(); QPalette fpal = qt_fusionPalette(); tells me that dark is #9f9d9a I was thinking the style defines the default palette. When compiling against Qt 4.8.5 and using -style plastique I get "dark" as #6a6563 I'm struggling with this as "dark" is the background color of a QMdiArea and in Qt4 it is really gray as documented, but in Qt5 it's black. -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
