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
int myInt[3] = {5, 12, 4};
int myInt[3] = {5, 12, 4};
To copy to clipboard, switch view to plain text mode
So here is what I have
mColorButton = new PaletteButton(Qt::white);
mColorButton = new PaletteButton(Qt::white);
To copy to clipboard, switch view to plain text mode
this class is initialized as follows
PaletteButton
(const QColor &color
);
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
Qcolor myPaletteColor[3] = {Qt::black, Qt::white, Qt::gray};
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,
Bookmarks