I got following issue: That's work:
#include <QtCore/QCoreApplication>
#include <QColor>
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QColor *c = new QColor();
    c->setRgb(12,123,13);
    return a.exec();
}
but this don't:
#include <QtCore/QCoreApplication>
#include <QColor>
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QColor c();
    c.setRgb(123,213,2);
    return a.exec();
}
Qtcreator get me:
request for member 'setRgb' in 'c' which is of non-class type 'Qcolor()'
What is going on?
EDIT OK solution was use Qcolor c without '()', but what if it is member of class? Then direct access still doesn't work... ie:
class X{
QColor c;
  void func(){
     c.setRgb(1,2,3);
  }
}
 
     
    