PDA

View Full Version : error:variable `QPainter painter' has initializer but incomplete type



node_ex
4th September 2008, 10:38
Hi,

I am using Qt 3.3. My class inherits from QDialog.


void CMediaDownload:: paintEvent(QPaintEvent* event)
{
QPainter painter(this);
}

This error is thrown by compiler.

error:variable `QPainter painter' has initializer but incomplete type

Regards,
node_ex.

caduel
4th September 2008, 14:55
add the include for QPainter: #include "qpainter.h" (I think)