开发者

creating MAC like QSlider

开发者 https://www.devze.com 2023-01-20 22:05 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消