Is there a way to let user choose what icon theme to use , when using QFIleIconProvider ? It looks like Qt uses “gnome” by default , i wanted to change this behavior.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The icon style is dependent on what is returned from QApplication::style(). So if you change the application style using QApplication::setStyle(), you’ll get a different set of icons too. If you want a different theme than the application style, you need to subclass QFileIconProvider and set you custom icon provider with
QFileSystemModel::setIconProvider(yourCustomIconProvider).