qpixmap Questions
4
Solved
I'm pretty new to C++/Qt and I'm trying to create an application with Visual Studio C++ and Qt (4.8.3). The application displays images using a QGraphicsView, I need to change the images at pixel l...
Gosser asked 26/11, 2012 at 23:2
4
Solved
How would you suggest to handle svg with QPixmap?
The construct QPixmap(":/myfile.svg"); then call of scaled() does not work. The QPixmap gets pixelised.
Thx.
5
Solved
Are there any known size/space limitation of QPixmap and/or QImage objects documented? I did not find any useful information regarding this. I'm currently using Qt 4.7.3 on OSX and Windows. Particu...
3
Solved
I have a MainWindow with a QLabel and a pixmap. I want to make it transparent (or less opaque)
I am using the following code below.
ui->label->setAttribute(Qt::WA_TranslucentBackground);
ui...
Arni asked 12/9, 2013 at 11:17
4
Solved
I suppose this is more of a graphics manipulation question in general, but I'd like to accomplish this in Qt (c++). If I have an image - let's just say a circle on a transparent background - of a l...
3
Solved
3
Solved
4
Solved
Simple situation: I have an object, which has a QPixmap member. Object first created (pixmap is null now), then pixmap readed from data base and inserted in object. I need to insert that pixmap in ...
2
Solved
I work at my homework in Qt Creator, where I paint to QWidget and I need to save some part of this QWdiget.
I tried to solve this problem:
QPixmap pixmap;
pixmap.copy(rectangle); // rectangle i...
1
I've used QVideoProbe to access camera frames. My platform is Android.
I've converted each camera frames to QImage and then pixmap and show on QLabel.
My problem is this process is very slow.
frame...
5
Solved
I do not understand what is the difference between QImage and QPixmap, they seem to offer the same functionality. When should I use a QImage and when should I use a QPixmap?
1
Solved
1
Solved
I have a very small Qt application that uses labels to display a jpeg image without first putting it in a window. (I got a lot of help from Display QImage with QtGui)
Now I would like to change th...
1
Solved
3
Solved
I draw few rectangles inside the QGraphicsView ; I use custom stipple pattern for these by creating a QBrush with my QPixmap. This gets displayed with the default zoom level as expected.
When I c...
Diatomite asked 19/12, 2012 at 18:4
3
Solved
I would like to have a background image in my QGraphicsView that is always scaled (and cropped if necessary) to the size of the viewport, without scrollbars and without scrolling with the keyboard ...
Rhododendron asked 22/3, 2010 at 2:47
1
Solved
I'm developing a GUI with PySide and I create pixmap from images like this:
PHONE_IMAGE_PATH = "resources/images/phone.png"
self.phone_null = QtGui.QPixmap(GREY_DOT_PATH)
self.phone_null = self.ph...
1
Solved
I'm trying to draw an icon(.png) inside a QWidget with QPainter::drawPixmap()
:
QPixmap _source = "/.../.png";
painter.setRenderHint(QPainter::HighQualityAntialiasing);
painter.drawPixmap(rect(),...
1
Solved
I am trying to rotate a QGraphicsPixmapItem child. For other QGraphicsItem, rotation and scaling work fine. But for a QGraphicsPixmapItem, if the size does not keep aspect ratio, instead of rotatio...
Consentient asked 5/8, 2015 at 22:53
2
How can we convert directly cv::Mat to QPixmap without going through filename loading?
I have made some research about it but no hints!
As a first step, what I have tried is that I save the image...
Grillparzer asked 7/5, 2013 at 13:48
1
Solved
I'm trying to create a QPixmap from a numpy array. The numpy array image is going to be 2D (ie no color info just grayscale).
I'm trying to adapt this answer to my needs however I don't quite unde...
3
Solved
I have the following widget:
pixmap = QtGui.QPixmap(r'pics\cdaudio.png').scaled(100, 100)
The image is scaled down, from 256x256. It looks pretty choppy:
How can I scale it smoothly from with...
1
Solved
Can anyone help me resize an image in qt without making the image pixelated.
Here's my code. the result is not as good as the original quality..thanks...
QImage img(name);
QPixmap pixmap;
pixmap =...
Wreathe asked 26/3, 2014 at 5:46
2
I'm a newbie to Qt/Embedded. I want to use QPainter to draw stuff on a QPixmap, which will be added to QGraphicsScene. Here is my code. But it does not show the drawings on the pixmap. It shows onl...
Craven asked 26/7, 2013 at 18:47
1
Solved
In my project I have a QLabel that I change the pixmap frequently like this:
ui->frameLabel->setPixmap(slot_pic[blockId[currentSlot]][damageId[currentSlot]]);
slot_pic is simply a 2d map. ...
Anacreontic asked 17/7, 2013 at 6:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.