Skip to content

Class QAccelPlot::Internal::ScopedPaintedItemTextures

ClassList > QAccelPlot > Internal > ScopedPaintedItemTextures

Rasterizes the painted items under a root item at a capture scale until destroyed. More...

  • #include <ScopedPaintedItemTextures.hpp>

Public Functions

Type Name
ScopedPaintedItemTextures (QQuickItem * root, qreal pixelsPerLogicalPixel, qreal devicePixelRatio)
Resizes the textures of root and its painted descendants rendered at__devicePixelRatio .
ScopedPaintedItemTextures (const ScopedPaintedItemTextures &) = delete
ScopedPaintedItemTextures (ScopedPaintedItemTextures &&) = delete
ScopedPaintedItemTextures & operator= (const ScopedPaintedItemTextures &) = delete
ScopedPaintedItemTextures & operator= (ScopedPaintedItemTextures &&) = delete
~ScopedPaintedItemTextures ()
Restores the previous texture sizes of the items that still exist.

Detailed Description

A QQuickPaintedItem rasterizes into a texture sized for its window's device pixel ratio, so an item grab at a higher scale would magnify, and blur, that texture. This raises every painted descendant's texture to pixelsPerLogicalPixel and restores the previous texture sizes on destruction.

Public Functions Documentation

function ScopedPaintedItemTextures

Resizes the textures of root and its painted descendants rendered at__devicePixelRatio .

QAccelPlot::Internal::ScopedPaintedItemTextures::ScopedPaintedItemTextures (
    QQuickItem * root,
    qreal pixelsPerLogicalPixel,
    qreal devicePixelRatio
) 


function ScopedPaintedItemTextures

QAccelPlot::Internal::ScopedPaintedItemTextures::ScopedPaintedItemTextures (
    const ScopedPaintedItemTextures &
) = delete

function ScopedPaintedItemTextures

QAccelPlot::Internal::ScopedPaintedItemTextures::ScopedPaintedItemTextures (
    ScopedPaintedItemTextures &&
) = delete

function operator=

ScopedPaintedItemTextures & QAccelPlot::Internal::ScopedPaintedItemTextures::operator= (
    const ScopedPaintedItemTextures &
) = delete

function operator=

ScopedPaintedItemTextures & QAccelPlot::Internal::ScopedPaintedItemTextures::operator= (
    ScopedPaintedItemTextures &&
) = delete

function ~ScopedPaintedItemTextures

Restores the previous texture sizes of the items that still exist.

QAccelPlot::Internal::ScopedPaintedItemTextures::~ScopedPaintedItemTextures () 



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/export/internal/ScopedPaintedItemTextures.hpp