Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89609

Unable to set title on a native QColorDialog on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.15.2
    • None
    • No special environment required.
    • macOS

      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];
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sn00p Adrian Carpenter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes