Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50898

QTabBar: on hidpi dragging a tab creates a low-resolution floating tab

    XMLWordPrintable

Details

    • 95c9a0376e6e27e46ea5ad67349af0089bd2f981

    Description

      See the summary – basically a movable QTabBar will create a dummy widget to animate the tab that it's being dragged. That dummy widget gets rendered using non-hidpi factors resulting in blurry icons and text. Relevant code from qtabbar.cpp:

          QPixmap grabImage(grabRect.size());
          grabImage.fill(Qt::transparent);
          QStylePainter p(&grabImage, q);
          p.initFrom(q);
      
          QStyleOptionTab tab;
          q->initStyleOption(&tab, pressedIndex);
          tab.rect.moveTopLeft(QPoint(taboverlap, 0));
          p.drawControl(QStyle::CE_TabBarTab, tab);
          p.end();
      

      Perhaps some devicePixelRatio call is missing?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes