PDA

View Full Version : Loading / setting custom style on win-xp



mpotocnik
29th April 2008, 11:38
Hi,

can anyone help me with this. I've successfully compiled bespin style on my windows xp machine as style plugin. I want to use this style with my application.

QApplication::setStyle(QStyleFactory::create("bespin"))

App directory structure looks like this:
app
app/plugins/styles

in app directory are files:
qt.conf
app.exe
(and Qt****.dll)

app/plugins/styles directory contains file:
bespin0.dll

Funny thing: on my machine where qt is installed (development machine) everything is ok. The application uses bespin style, but on another xp machine (test machine) without qt installed application uses xpstyle.

I've also tested environment with:
foreach (QString style, QStyleFactory::keys())
qDebug() << style;

On development machine includes "Bespin" but on test machine "Bespin" is not present.

On development machine $QTDIR/plugins/styles directory is empty

Thanks in advance