Set appropriate style for the user's platform ?
Hi,
i set the application style like this:
then i will set the most appropriate style for the user's platform or desktop environment and try that:
but the style don't change to the the most appropriate style!
How can i do that?
Thanks in advance,
Whitefurrows
Re: Set appropriate style for the user's platform ?
Is styleName in the list that QStyleFactory::keys returns?
As far as I know there is no need to override manually the style, because the platform style is used by default.
Anyway, you can rest assured that WinXP style won;t be set by default on another platform than Windows, or Mac style on other platform than Mac.
I say this from experience.
Re: Set appropriate style for the user's platform ?
I'll say even more. WinXP style won't be set on systems older than WinXP :)
Re: Set appropriate style for the user's platform ?
Yes, the styleName is in the list that QStyleFactory::keys returns for example i set "plastique":
Yes the platform style is used by default, but my problem is, i set a style like ("plastique") and can't reset to the platform default style.
In Qt 3.3 i can do it with:
but Qt 4.2 do nothing.
The problem is not a dependent style like "windowsxp" and "macintosh", you know what i mean?
Re: Set appropriate style for the user's platform ?
Why not store the name of the default style before setting the new one?
Re: Set appropriate style for the user's platform ?
How can i store the default style?
Re: Set appropriate style for the user's platform ?
Re: Set appropriate style for the user's platform ?
Thank you, i can use it, but i think that's not fine. Is no function available like this:
Code:
QApplication->setStyle(QApplication->defaultStyle());
Re: Set appropriate style for the user's platform ?
Quote:
Originally Posted by
whitefurrows
Thank you, i can use it, but i think that's not fine. Is no function available like this:
Code:
QApplication->setStyle(QApplication->defaultStyle());
AFAIK, nothing like that exists. You can send suggestions via Task-Tracker.
Re: Set appropriate style for the user's platform ?
Thanks at all. I try it and send my suggestions via Task-Tracker.