February 19, 2012

devlinse devlinse
Lab Rat
3 posts

[SOLVED]Is there a way to define a separate set of icons for the same QActions used in QMenuBar and QToolBar?

 

Since the icons look blurry when they get scaled, I want to draw a smaller set of icons for the QMenuBar to make them look cleaner.
Is there a way to assign the smaller icons to the QMenuBar and still show the large icons for the QMenuBar without having to define a separate set of actions?

2 replies

February 19, 2012

Andre Andre
Area 51 Engineer
6031 posts

Yes. QIcon supports setting different pixmaps for different sizes.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

February 20, 2012

devlinse devlinse
Lab Rat
3 posts

Thanks a bunch!

 
  ‹‹ Newbie Question, Main Function?      Make item if QTreeView or QStandartItem unvisible ››

You must log in to post a reply. Not a member yet? Register here!