darksaga
31st August 2007, 20:57
hi there,
i need to get my hands on the name of the current QStyle name.
follwoing code:
QStyle *currentStyle = QApplication::style();
qDebug() << "currentStyle " << currentStyle;
qDebug() << "currentStyle " << currentStyle->metaObject()->className();
shows
currentStyle QWindowsXPStyle(ptrAddress, name = "windowsxp")
currentStyle QWindowsXPStyle
on the console
"windowsxp" is the property I'd like to get
anyone knows how to do this?
i need to get my hands on the name of the current QStyle name.
follwoing code:
QStyle *currentStyle = QApplication::style();
qDebug() << "currentStyle " << currentStyle;
qDebug() << "currentStyle " << currentStyle->metaObject()->className();
shows
currentStyle QWindowsXPStyle(ptrAddress, name = "windowsxp")
currentStyle QWindowsXPStyle
on the console
"windowsxp" is the property I'd like to get
anyone knows how to do this?