1
votes

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?

1
Can you add an image of what you are looking for? I don't have a Mac. - Arnold Spence

1 Answers

0
votes

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.