About 1,050,000 results
Open links in new tab
  1. c++ - Save and restore QLabels with images in Qt - Stack Overflow

    May 8, 2017 · I'll try and get a code solution that restores the image directly where the user placed it on the screen with coordinates on the application.

  2. Insert and read Image in QLable using QDataWidgetMapper

    Nov 6, 2011 · You need the image data as a QByteArray in order to insert/retrieve it from the blob database field. You will probably need to implement a QItemDelegate to handle the transfer of data to and from this widget.

  3. Image Viewer Example | Qt Widgets 5.15.18

    The example demonstrates how QLabel 's ability to scale its contents (QLabel::scaledContents), and QScrollArea 's ability to automatically resize its contents (QScrollArea::widgetResizable), can be used to implement zooming and scaling features.

  4. QFileDialog - How to load and display image in a QLabel - Qt

    Sep 30, 2021 · How to load and display an image in a QLabel using QFileDialog. The image paths is working perfectly but after selecting the image, the page exits. The image should display after it is selected. from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QApplication, QLabel, QFileDialog. from PyQt5.QtGui import QPixmap.

  5. Qt/C++ - Lesson 029. Picture in database in Qt – Saving and …

    Apr 1, 2023 · Picture in database in Qt – Saving and Loading. Images in the database can be stored in BLOB format ( Binary Large Object ), that is an array of binary data format.

  6. c++ - Saving images and then display them in a QLabel - Stack …

    Apr 4, 2017 · imgIn = imgIn.scaled(ui->label_15->width(), ui->label_15->height(),Qt::IgnoreAspectRatio, Qt::SmoothTransformation); ui->label_15->setPixmap(QPixmap::fromImage(imgIn));

  7. QLabel Class | Qt Widgets | Qt 6.9.0

    A QLabel is often used as a label for an interactive widget. For this use QLabel provides a useful mechanism for adding an mnemonic (see QKeySequence) that will set the keyboard focus to the other widget (called the QLabel's "buddy"). For example:

  8. Save and Load pictures in QT c++ from SQLite - Qt Forum

    Apr 8, 2022 · QString filename = QFileDialog:: getOpenFileName (this, tr ("Open Image"), "/", tr ("Image Files (*.png *.jpg *.bmp)")); QPixmap pixmapTarget = QPixmap (filename); pixmapTarget = pixmapTarget. scaled (ui->candidate_1_img-> width (), ui->candidate_1_img-> height (), Qt::IgnoreAspectRatio , Qt::SmoothTransformation);

  9. How to set image with QLabel in Qt? - Stack Overflow

    Aug 29, 2012 · QPixmap::QPixmap ( const QString & fileName, const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor ); QLabel::setPixmap ( const QPixmap & );

  10. display QImage on QLabel - Qt Centre

    Sep 23, 2008 · m_labelFloorPlan ->setPixmap (QPixmap::fromImage(* m_imageFloor, Qt::AutoColor));

Refresh