I am seeing a strange error when I extend QFrame and override paintEvent. The
error, which seems to be random, is the following:
QtJambi: Exception pending in native code in file
'..\cpp\com_trolltech_qt_gui\qtjambishell_QFrame.cpp':1016
The error appears several seconds after my app starts, and repeats a few dozen
times.
My implementation of paintEvent is meant to put a background image on my frame:
protected void paintEvent(QPaintEvent pe){
QPainter myPainter = new QPainter(this);
// QRect rect = pe.rect(); // do not use -- stretches image
// paint in the logo as a background image
myPainter.drawPixmap(0, 0, new QPixmap("classpath:icons/MC Logo 3
Short.png"));
myPainter = null;
this.paintEvent(pe);
}
The image is drawn just like I would expect, so things are working at a base
level.
The error seems harmless, but I want to make sure that I am not doing anything
wrong here. Memory leaks are my main concern.
I am using Qt Jambi 4.5.2_01.
Does anyone have insight into this?
----------------------------------------------------------------------
Pierce Krouse Phone: (512) 372-7522
Staff Software Engineer Fax: (512) 372-7647
Synopsys Professional Services
Synopsys, Inc.
4 Barton Skyway, Suite 200
1301 South Mopac
mailto:[email protected]<mailto:[email protected]>
Austin, TX 78746
http://www.synopsys.com<http://www.synopsys.com/>
----------------------------------------------------------------------
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest