I have a QLabel that is loaded with a pixmap. I have it set so that when the window/QLlabel is resized, the image of the qlabel resizes as well. However, when I try to save the image and retrieve the pixmap, it is the original loaded. How would I go about retrieving the newly resized image from the QLabel and retrieving it as a QImage?
How to save the image in a resized QLabel?
1.1k Views Asked by carboncomputed At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in QT4
- Why scrollContentsBy(dx, dy) function not called when scroll by moving the cursor in QPlainTextEdit
- How to grab video frames in Qt?
- PySide: How to append text from different classes in QTextBrowser?
- Using Qmake in Makefile?
- Making QMessageBox InformativeText Bold and increase font size
- Show name of song on Qlabel
- qt designer qgraphicsview load image
- Qt4: Window appears in the upper left corner on metacity
- Qt application changes font when run as root
- How to include a lib with dependencies to QT
- Missing mocinclude.tmp
- Qt4 C++ Resize window, preserve square form
- Disconnect slot from parent class QAbstractItemView
- space between two tool buttons and hboxlayout
- Qt4 QTreeWidget with VS2015 x64 win10
Related Questions in QLABEL
- QWidget.paintevent() vs QLabel.setPixmap()
- Remove Labels in qt
- Python PyQt Qlabel Resize
- How do I modify a QLabel object in my UI outside of its slot?
- Not able to display Qlabel on PyQt4
- Make a QLabel blink
- QListWidgetItem items overlap each other
- How to make QLabel expand width geometry to accommodate text
- How to insert QPushButton into a QLabel (PyQt4)?
- Want to execute a QString statement, which has the last part as integer variable
- How can I access the text contained in QLabel using a loop?
- How to get the text from QTableWidget::setCellWidget()
- Qt: display an image (QLabel) inside a QScrollArea
- How to get the text color of a QLabel?
- displaying a text using QLabel ontop of another QLabel showing image has become such a pain
Related Questions in PIXMAP
- Libgdx: Dynamically increasing size of Pixmap
- Fast plotting with pixmap or bitmap in Qt
- How can an image to be displayed on a qdialog?
- libgdx- pixmap: can I somehow change the width of the line?
- Modifying transparency of Texture in LibGDX
- How can I resize my pixmap in GTK2
- Creating OFF SCREEN surface using Open GL ES 2.0
- Open GL ES creating Off-screen
- How to set maximum widths and heights for pixmaps?
- gnuplot: How to display transparent png with pixmap
- For xlib, how to create a child window with the background pixel or pixmap of its parent window?
- Got wrong pictures while saving ZPixmap to png
- How to save the image in a resized QLabel?
- What is the most efficient way to display multiple pixmaps into a scroll area?
- qt delay on off pixmap
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
On the resize event of your label, Use
For getting image as size of image use
if this image is still not the same size as of label, Try