PDA

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



node_ex
4th September 2008, 11: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, 15:55
add the include for QPainter: #include "qpainter.h" (I think)