Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.15.2
-
None
-
No special environment required.
Description
When using the native QColorDialog, it is impossible to set the name of the dialog box, it ignores setWindowTitle and remains with the titles "Colors".
This example shows the problem, the title remains as "Colors".
QColorDialog colourDialog;
colourDialog.setWindowTitle("Hello World");
colourDialog.setCurrentColor(Qt::red);
colourDialog.exec();
The following objective-c code shows the native dialog and the title is correctly set to "This Works"
NSColorPanel *colourDialog = [NSColorPanel sharedColorPanel];
[colourDialog setTitle: @"This Works"];
[colourDialog makeKeyAndOrderFront:nil];