[Qt-interest] problem with porting 'repaint' to Qt4
Mahmood Naderan
nt_mahmood at yahoo.com
Sat Jan 24 19:14:02 CET 2009
Hello,
When I want to port a function to Qt4, I get an error:
function:
void do_paint() { if (Locked==0) repaint(FALSE); };
error:
error C2664: 'void QWidget::repaint(const QRect &)' : cannot convert parameter 1 from 'bool' to 'const QRect &'
Reason: cannot convert from 'bool' to 'const QRect'
No constructor could take the source type, or constructor overload resolution was ambiguous
How can I resolve it?
----------------------
Mahmood Naderan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090124/59540d7b/attachment.html
More information about the Qt-interest-old
mailing list