Static variable of a class have to be defined explicitly in the namespace scope only once (irrespective of wheter they are further cv qualified or not).
In the .cpp file (e.g in <ClassName>.cpp
), in the global namespace (assuming your class is in global namespace), define it as follows (assuming an appropriate constructor exists in QString)
NB: I missed 'const' in the definition below
const QString <ClassName>::ALARM_ERROR_IMAGE = "error.png";
$9.4.2/2 - "The declaration of a
static data member in its class
definition is not a definition and may
be of an incomplete type other than
cv-qualified void. The definition for
a static data member shall appear in a
namespace scope enclosing the member’s
class definition. In the definition at
namespace scope, the name of the
static data member shall be qualified
by its class name using the ::
operator."