Hi,

New some help with creating an array that holds the different QColors. I am working on MSVC 12 and using Qt 5.3.1
From what i know to create an integer array one would simply use

Qt Code:
  1. int myInt[3] = {5, 12, 4};
To copy to clipboard, switch view to plain text mode 


So here is what I have

Qt Code:
  1. mColorButton = new PaletteButton(Qt::white);
To copy to clipboard, switch view to plain text mode 

this class is initialized as follows

Qt Code:
  1. PaletteButton(const QColor &color);
To copy to clipboard, switch view to plain text mode 

my intention is to store the different colors used by the PaletteButton in an array. Some like this

Qt Code:
  1. Qcolor myPaletteColor[3] = {Qt::black, Qt::white, Qt::gray};
To copy to clipboard, switch view to plain text mode 

Is this possible? Any ideas would be helpful!

Thanks,