18 #include <QAbstractSpinBox>
19 #include <QApplication>
20 #include <QStandardPaths>
24 qreal x1 = source.
left();
25 qreal y1 = source.
top();
26 qreal x2 = source.
right();
27 qreal y2 = source.
bottom();
28 qreal x1P = target.
left();
29 qreal y1P = target.
top();
30 qreal x2P = target.
right();
31 qreal y2P = target.
bottom();
34 if ( ( x1 != x2 ) && ( y1 != y2 ) )
36 matrix =
QTransform( ( x2P - x1P ) / ( x2 - x1 ),
39 ( y2P - y1P ) / ( y2 - y1 ),
40 ( x1P * x2 - x2P * x1 ) / ( x2 - x1 ),
41 ( y1P * y2 - y2P * y1 ) / ( y2 - y1 ) );
97 quint64 imageSize(
const QImage& img)
99 #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QString findExecutable(const QString &executableName, const QStringList &paths)
qsizetype sizeInBytes() const const
int byteCount() const const
qreal bottom() const const
bool isEmpty() const const
qreal right() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString applicationDirPath()