Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
ahura_24 last edited by
hi every body .
QApplication::setStyle( "macintosh" );
why this code doesnt work ?!
alexisdm last edited by
You should define "doesn't work" more precisely.
But if you are not on a mac, that style isn't available.
And if you call that function after the widgets have already been created, it doesn't have any effect (I think you would have to call setStyle recursively on every widget and their children).
dbzhang800 last edited by
I don't know why you want to manually set style to "macintosh", which is the default style of MAC already.
And if you OS is not MAC, "macintosh" will not exist. Read the manual please.