68 this, QOverload<>::of(&Window::loadImage));
72 this, &Window::resetUi);
86 layout->addLayout(buttonLayout);
93 void Window::loadImage()
102 path,
tr(
"Image files (%1)").
arg(formats.join(
' ')));
108 if (!
image.isNull()) {
126 label->setPixmap(pixmap);
142 label->setPixmap(pixmap);
146 void Window::resetUi()
[custom type definition and meta-type declaration]
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
void addStretch(int stretch=0)
The QByteArray class provides an array of bytes.
The QColor class provides colors based on RGB, HSV or CMYK values.
friend class QPushButton
[1]
static QString getOpenFileName(QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, Options options=Options())
QScreen * primaryScreen
the primary (or default) screen of the application.
The QHBoxLayout class lines up widgets horizontally.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static QList< QByteArray > supportedImageFormats()
The QLabel widget provides a text or image display.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QPainter class performs low-level painting on widgets and other paint devices.
bool begin(QPaintDevice *)
void fillRect(const QRectF &, const QBrush &)
void fill(const QColor &fillColor=Qt::white)
The QRect class defines a rectangle in the plane using integer precision.
constexpr int height() const noexcept
constexpr int width() const noexcept
QRect availableGeometry
the screen's available geometry in pixels
The QString class provides a Unicode character string.
static QString fromLatin1(QByteArrayView ba)
The QStringList class provides a list of strings.
void finished(QPrivateSignal)
The QVBoxLayout class lines up widgets vertically.
void stopProcess()
[processing the image (finish)]
void sendBlock(const Block &block)
void processImage(const QImage &image)
[processing the image (start)]
void loadImage(const QImage &image)
void addBlock(const Block &block)
[Adding blocks to the display]
GLuint GLsizei const GLchar * label
[43]
GLint GLsizei GLsizei GLenum format
GLsizei const GLchar *const * path
constexpr QRgb qRgb(int r, int g, int b)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent