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

QColorDialogOptions::setStandardColor and QColorDialogOptions::setCustomColor do not support alpha channel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.9.1
    • None

      QColorDialog::setStandardColor and QColorDialog::setCustomColor support alpha channel (rgba) but in implementation of both of them (where QColorDialogOptions fucntions have been called) the developer not considered that QColorDialogOptions::setStandardColor and QColorDialogOptions::setCustomColor only support rgb.

      Therefore the output of QColorDialog::standardColor and QColorDialog::customColor not as same as input of QColorDialog::setStandardColor and QColorDialog::setCustomColor when we have alpha channel.

       

      void QColorDialog::setCustomColor(int index, QColor color) 
      {
           QColorDialogOptions::setCustomColor(index, color.rgba()); 
      }
      void QColorDialog::setStandardColor(int index, QColor color) 
      { 
         QColorDialogOptions::setStandardColor(index, color.rgba()); 
      }
      void QColorDialogOptions::setCustomColor(int index, QRgb color);
      
      void QColorDialogOptions::setStandardColor(int index, QRgb color);
       
      

       

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

            richard Richard Moe Gustavsen
            s.hossein s.hossein hosseini
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes