View Full Version : Bitmap border
SailinShoes
14th May 2008, 07:48
I have made a simple speedometer. I render the needle and use a bitmap to view the meter. It looks very good, but the bitmaps border to the left is slightly visible. Is there a way to smooth out or hide the border?
aamer4yu
14th May 2008, 09:49
Thers some option of setRendering to Anti Aliasing I guess...
dont remember the function exxactly... search for anti aliasing the QtAssistant
SailinShoes
14th May 2008, 09:53
I use...
painter.setRenderHint(QPainter::Antialiasing, true); // Does not help!!!
Thank you for your input anyways...
aamer4yu
14th May 2008, 09:57
can u show us a snapshot ??
SailinShoes
14th May 2008, 10:07
void SpeedoMeter::paintEvent(QPaintEvent *event)
{
QPixmap pixmap("speedo.bmp");
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing, true);
painter.drawPixmap(10, 10, pixmap);
.
.
.
}
SailinShoes
14th May 2008, 18:37
I'll post a picture of my problem. Please take a look at it...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.