creating MAC like QSlider
I want to make the default QSlider like that of Macintosh. Is it possible. I tried with the setStyleSheet, but failed to make that 开发者_运维问答one.
Any suggestions... Please?
The appearance of a QSlider depends on the style your Qt application is using. If you're running a Mac, it should use a Mac-like style out of the box. If it doesn't, you can force it from the command line by passing an "-style macintosh" or programmatically using QApplication::setStyle().
You can't get Mac-looking widgets in a non-Mac environment as the implementation uses the native toolkit to draw widgets.
精彩评论