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

Unable to set title on a native QColorDialog on macOS

    XMLWordPrintable

Details

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

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes