KWidgetsAddons
kpixmapregionselectorwidget.h
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly wa...
Definition kpixmapregionselectorwidget.h:30
void setSelectedRegion(const QRect &rect)
Sets the selected region to be rect (in zoomed pixmap coordinates)
Definition kpixmapregionselectorwidget.cpp:117
void resetSelection()
Resets the selection to use the whole image.
Definition kpixmapregionselectorwidget.cpp:105
virtual QMenu * createPopupMenu()
Creates a QMenu with the menu that appears when clicking with the right button on the label.
Definition kpixmapregionselectorwidget.cpp:173
void rotateClockwise()
Rotates the current image 90º clockwise.
Definition kpixmapregionselectorwidget.cpp:252
QRect unzoomedSelectedRegion() const
Returns the selected region ( in unzoomed, original pixmap coordinates )
Definition kpixmapregionselectorwidget.cpp:438
KPixmapRegionSelectorWidget(QWidget *parent=nullptr)
Constructor for a KPixmapRegionSelectorWidget.
Definition kpixmapregionselectorwidget.cpp:62
void setFreeSelectionAspectRatio()
Allows the user to do a selection which has any aspect ratio.
Definition kpixmapregionselectorwidget.cpp:457
void setPixmap(const QPixmap &pixmap)
Sets the pixmap which will be shown for the user to select a region from.
Definition kpixmapregionselectorwidget.cpp:96
void setSelectionAspectRatio(int width, int height)
Sets the aspect ration that the selected subimage should have.
Definition kpixmapregionselectorwidget.cpp:452
~KPixmapRegionSelectorWidget() override
Destructor for a KPixmapRegionSelectorWidget.
void rotateCounterclockwise()
Rotates the current image 90º counterclockwise.
Definition kpixmapregionselectorwidget.cpp:257
void rotate(RotateDirection direction)
Rotates the image as specified by the direction parameter, also tries to rotate the selected region s...
Definition kpixmapregionselectorwidget.cpp:195
QRect selectedRegion() const
Returns the selected region ( in zoomed pixmap coordinates )
Definition kpixmapregionselectorwidget.cpp:112
void setMaximumWidgetSize(int width, int height)
Sets the maximum size for the widget.
Definition kpixmapregionselectorwidget.cpp:462
QImage selectedImage() const
Definition kpixmapregionselectorwidget.cpp:446
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
virtual bool eventFilter(QObject *watched, QEvent *event)
QWidget(QWidget *parent, Qt::WindowFlags f)
height
rect
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:02:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:02:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.