iGoo
29th May 2006, 10:36
In QT4.1.2
I designe dialog in QT designer,and preview in "plastique style".
It looks beautiful with bright background just like Opera---an Internet Explorer.
But when I Set the style in my source code it look gray,urgly.
on Windows 2k pro.
any one help?
Thanks.
Below is my code snippet:
int main(int argc, char *argv[])
{
QPlastiqueStyle *pque;
pque = new QPlastiqueStyle;
/*
Should I call some member function of QPlastiqueStyle to
change it's default look?
pque->。。。
*/
QApplication::setStyle(pque);
QApplication app(argc, argv);
dlg imageDlg;
imageDlg.show();
//QCDEStyle::
imageDlg.setImg();
return app.exec();
}
I designe dialog in QT designer,and preview in "plastique style".
It looks beautiful with bright background just like Opera---an Internet Explorer.
But when I Set the style in my source code it look gray,urgly.
on Windows 2k pro.
any one help?
Thanks.
Below is my code snippet:
int main(int argc, char *argv[])
{
QPlastiqueStyle *pque;
pque = new QPlastiqueStyle;
/*
Should I call some member function of QPlastiqueStyle to
change it's default look?
pque->。。。
*/
QApplication::setStyle(pque);
QApplication app(argc, argv);
dlg imageDlg;
imageDlg.show();
//QCDEStyle::
imageDlg.setImg();
return app.exec();
}