Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.6.3
-
None
-
5efaeb863c3705693de1500a3bf012da8bbdc95a
Description
The ShowAlphaChannel and DontUseNativeDialog options in QColorDialog do not behave as documented under Linux. Consider the following code snippet:
#include <QApplication>
#include <QColorDialog>
#include <QColor>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QColorDialog::getColor(QColor(100, 100, 100), 0, "Test", QColorDialog::ShowAlphaChannel);
}
When I execute this code on linux (Fedora 13 64-bit), the alpha channel is not shown. If I add the QColorDialog::DontUseNativeDialog option to the above, I do get an alpha channel in my dialog, but the Qt documentation for DontUseNativeDialog says this option only affects Mac: "Use Qt's standard color dialog on the Mac instead of Apple's native color panel."
While I can understand that the native color dialog on my system might be erroneously implemented (probably a bug in KDE), the documentation for DontUseNativeDialog is misleading because in this case I seem to get a different dialog with it under Linux too, not just under Mac.
Attachments
For Gerrit Dashboard: QTBUG-14341 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
77366,1 | DontUseNativeDialog is not just for the Mac color dialog | 4.8 | qt/qt | Status: MERGED | +2 | 0 |