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.
Poinsettia asked 9/4, 2012 at 19:58

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...
Sunroom asked 16/8, 2011 at 14:42

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...
Kelsi asked 30/3, 2012 at 2:0

3

Solved

I have pixmap: pixmap = self._screen.grabWindow(0, self._x, self._y, self._width, self._height) I want to convert it to OpenCV format. I tried to convert it to numpy.ndarray as described here ...
Delozier asked 10/7, 2017 at 20:5

3

Solved

Try to link PyQt and Opencv video feed, can't understand how to apply while loop for continuously streaming video. It just take a still picture.Please can anyone help to solve the problem. PtQt=5...
Torosian asked 7/6, 2017 at 5:39

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 ...
Findley asked 6/7, 2011 at 15:0

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...
Apps asked 30/4, 2012 at 10:7

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...
Vorticella asked 21/9, 2014 at 10:17

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?
Anam asked 25/4, 2012 at 0:30

1

Solved

I have written application that draws two smiling faces: First one is painted directly on QWidget: void DirectFace::paintEvent(QPaintEvent *ev) { QPainter painter(this); paintFace(painter); }...
Poppo asked 2/2, 2017 at 20:8

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...
Placative asked 11/5, 2017 at 17:28

1

Solved

I'm new to PyQt5 and I couldn't find any answers that worked for me about how to draw with QPainter on top of a loaded image (QPixmap("myPic.png")). I tried doing it within a paintEvent method but ...
Chanson asked 13/3, 2017 at 17:2

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...
Yellowknife asked 14/4, 2016 at 10:40

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(),...
Kweichow asked 27/4, 2016 at 15:26

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...
Phenetole asked 10/1, 2015 at 2:26

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...
Sexton asked 15/12, 2012 at 9:46

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

© 2022 - 2024 — McMap. All rights reserved.