The ImageCropDialog class Self-contained modal dialog wrapping CropAreaWidget with OK/Cancel – the same reasoning as ImageTransparentColorDialog: this needs neither undo-during-drag nor coexistence with other tools, only a rectangle the user drags out against a pixmap already in hand.
More...
#include <imagecropdialog.h>
Inherits QDialog.
The ImageCropDialog class Self-contained modal dialog wrapping CropAreaWidget with OK/Cancel – the same reasoning as ImageTransparentColorDialog: this needs neither undo-during-drag nor coexistence with other tools, only a rectangle the user drags out against a pixmap already in hand.
◆ ImageCropDialog()
| ImageCropDialog::ImageCropDialog |
( |
const QPixmap & | pixmap, |
|
|
const QRect & | existingCropRect = QRect(), |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
ImageCropDialog::ImageCropDialog.
- Parameters
-
| pixmap | the full, uncropped image to crop from |
| existingCropRect | a crop rectangle remembered from a previous session, shown from the start rather than resetting to the full image every time the dialog is reopened – an empty QRect means there isn't one yet. |
| pixmap | the image to crop |
| existingCropRect | a crop rectangle remembered from a previous session, or an empty QRect if there isn't one yet |
| parent | |
◆ cropRect()
| QRect ImageCropDialog::cropRect |
( |
| ) |
const |
ImageCropDialog::cropRect.
The chosen crop rectangle, in the original pixmap's own coordinates. Only meaningful after the dialog was accepted.
- Returns
- the chosen crop rectangle, in the original pixmap's own coordinates
◆ m_cropArea
The documentation for this class was generated from the following files: