Le 21/09/2016 à 22:08, Enrico Forestieri a écrit :
What I do not understand is why the code for getting the same image in the
tab bar is so much simpler. It does not look really worse to me.


Because QIcon internally does what we have to explicitly do for a pixmap.

To be frank I never knew the real difference between an icon and a pimap. And I do not know why we cannot insert an icon in the statusbar instead of a pixmap.

On this page,
  http://stackoverflow.com/questions/10079011/qpixmap-and-svg
someone proposes
  QIcon("filepath.svg").pixmap(QSize())

Would something like that work for us? That looks good.

JMarc

Reply via email to