title: Low quality QPixmap in Windows
body: <p>I am uploading QPixmap to QTableView via QSqlTableModel. On Linux, images are displayed in normal quality, but on Windows, the image quality is very low. Is it possible to fix it somehow?</p>
  <p><strong>Qt 6</strong></p>
  <p>fragment of my code:</p>
  <pre><code>SqlTableModel::SqlTableModel(QObject *parent, QSqlDatabase db)
      : QSqlTableModel(parent, db)
  {
      int iconheight = QFontMetrics(QApplication::font()).height() * 2 - 4;
      m_IconSize = QSize(iconheight, iconheight);
      
      /*...*/
      
      m_ActoinMMIcon = QPixmap(&quot;:/resources/img/many_many.svg&quot;, &quot;SVG&quot;).
              scaled(m_IconSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
  
     /*... etc ...*/
  }
  
  QVariant SqlTableModel::data(const QModelIndex &amp;index, int role) const
  {    
      if(role == Qt::BackgroundRole &amp;&amp; isDirty(index)) return QBrush(QColor(Qt::yellow));
  
      auto field = record().field(index.column());
      auto tablename = field.tableName();
      auto fieldname = field.name();
  
      /*...*/
      
      // TABL_TASKS
      if(tablename == TABL_TASKS)
      {
          if(fieldname == COL_TASKACTTYPE)
          {
              if(role == Qt::DisplayRole) return QString();
              else if(role == Qt::DecorationRole)
              {
                  auto value = QSqlTableModel::data(index, Qt::DisplayRole).toInt();
                  if(value == Action::ManyFromMany) return m_ActoinMMIcon;
                  else if(value == Action::OneFromMany) return m_ActoinOMIcon;
                  else if(value == Action::AsValue) return m_ActoinValueIcon;
                  else return m_ErrorIcon;
              }
              else if(role == Qt::SizeHintRole) return m_IconSize;
          }        
          /*...*/
      }
      
      /*...*/
  
      return QSqlTableModel::data(index, role);
  }
  
  </code></pre>
  <p>Linux:
  <a href="https://i.stack.imgur.com/YElh7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YElh7.png" alt="Linux" /></a></p>
  <p>Windows:
  <a href="https://i.stack.imgur.com/sRIoc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sRIoc.png" alt="Windows" /></a></p>