[Qt-interest] problem with porting 'repaint' to Qt4
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Sat Jan 24 21:00:33 CET 2009
Don't call repaint with a Boolean?
Look at the documentation and for the qwidget QT3 support members.. it
tells you exactly what to call instead
Scott
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mahmood Naderan
Sent: Saturday, January 24, 2009 10:14 AM
To: QT mailing list
Subject: [Qt-interest] problem with porting 'repaint' to Qt4
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/54cc4042/attachment.html
More information about the Qt-interest-old
mailing list