12#include <QApplication>
21 const QSize &labelSize)
45 if ((
event->pos() - dragStartPosition).manhattanLength()
81 dragStartPosition =
event->pos();
86 return imageLabel->
pixmap();
int startDragDistance
the minimum distance required for a drag and drop operation to start.
\inmodule QtCore \reentrant
bool open(OpenMode openMode) override
\reimp
void setHotSpot(const QPoint &hotspot)
Sets the position of the hot spot relative to the top-left corner of the pixmap used to the point spe...
void setMimeData(QMimeData *data)
Sets the data to be sent to the given MIME data.
QPixmap pixmap() const
Returns the pixmap used to represent the data in a drag and drop operation.
void setPixmap(const QPixmap &)
Sets pixmap as the pixmap used to represent the data in a drag and drop operation.
The QFrame class is the base class of widgets that can have a frame.
void setFrameShape(Shape)
void setFrameShadow(Shadow)
bool save(const QString &fileName, const char *format=nullptr, int quality=-1) const
Saves the image to the file with the given fileName, using the given image file format and quality fa...
The QLabel widget provides a text or image display.
QPixmap pixmap
the label's pixmap.
void setPixmap(const QPixmap &)
void addWidget(QWidget *w)
Adds widget w to this layout in a manner specific to the layout.
void setData(const QString &mimetype, const QByteArray &data)
Sets the data associated with the MIME type given by mimeType to the specified data.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
int height() const
Returns the height of the pixmap.
QPixmap scaled(int w, int h, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const
QImage toImage() const
Converts the pixmap to a QImage.
int width() const
Returns the width of the pixmap.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVBoxLayout class lines up widgets vertically.
QT_BEGIN_NAMESPACE typedef uchar * output
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent