define those only in the cpp:

`cpp

static const QString processErrorMessages[] = {
...
}
`
No need to mention them in the .h, and you can still use them in the cpp