[Qt-interest] problem with porting 'repaint' to Qt4

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sun Jan 25 06:41:31 CET 2009


 

Isnt that what the doc says to do...

 

Scott

________________________________

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mahmood Naderan
Sent: 2009-01-24 21:27
To: QT mailing list
Subject: Re: [Qt-interest] problem with porting 'repaint' to Qt4

 

>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

 

I don't want to turn on QT3_SUPPORT. I looked at the manual. You mean calling it without argument?

 

http://doc.trolltech.com/4.4/qwidget.html#repaint

  void QWidget::repaint ()

 

-----------------------

Mahmood Naderan

 

 

________________________________

From: Scott Aron Bloom <Scott.Bloom at sabgroup.com>
To: QT mailing list <qt-interest at trolltech.com>
Sent: Saturday, January 24, 2009 11:30:33 PM
Subject: Re: [Qt-interest] problem with porting 'repaint' to Qt4

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/8a516897/attachment.html 


More information about the Qt-interest-old mailing list