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:113
void resetSelection()
Resets the selection to use the whole image.
Definition kpixmapregionselectorwidget.cpp:101
virtual QMenu * createPopupMenu()
Creates a QMenu with the menu that appears when clicking with the right button on the label.
Definition kpixmapregionselectorwidget.cpp:169
void rotateClockwise()
Rotates the current image 90º clockwise.
Definition kpixmapregionselectorwidget.cpp:248
QRect unzoomedSelectedRegion() const
Returns the selected region ( in unzoomed, original pixmap coordinates )
Definition kpixmapregionselectorwidget.cpp:434
KPixmapRegionSelectorWidget(QWidget *parent=nullptr)
Constructor for a KPixmapRegionSelectorWidget.
Definition kpixmapregionselectorwidget.cpp:58
void setFreeSelectionAspectRatio()
Allows the user to do a selection which has any aspect ratio.
Definition kpixmapregionselectorwidget.cpp:453
void setPixmap(const QPixmap &pixmap)
Sets the pixmap which will be shown for the user to select a region from.
Definition kpixmapregionselectorwidget.cpp:92
void setSelectionAspectRatio(int width, int height)
Sets the aspect ration that the selected subimage should have.
Definition kpixmapregionselectorwidget.cpp:448
~KPixmapRegionSelectorWidget() override
Destructor for a KPixmapRegionSelectorWidget.
void rotateCounterclockwise()
Rotates the current image 90º counterclockwise.
Definition kpixmapregionselectorwidget.cpp:253
void rotate(RotateDirection direction)
Rotates the image as specified by the direction parameter, also tries to rotate the selected region s...
Definition kpixmapregionselectorwidget.cpp:191
QRect selectedRegion() const
Returns the selected region ( in zoomed pixmap coordinates )
Definition kpixmapregionselectorwidget.cpp:108
void setMaximumWidgetSize(int width, int height)
Sets the maximum size for the widget.
Definition kpixmapregionselectorwidget.cpp:458
QImage selectedImage() const
Definition kpixmapregionselectorwidget.cpp:442
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 Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.