[Qt-interest] problem with porting 'repaint' to Qt4
Mahmood Naderan
nt_mahmood at yahoo.com
Sun Jan 25 06:50:39 CET 2009
> Isnt that what the doc says to do…
Accoring to manual, there are 4 overloaded function for QWidget::repaint:
void QWidget::repaint () [slot]
void QWidget::repaint ( int x, int y, int w, int h )
void QWidget::repaint ( const QRect & r )
void QWidget::repaint ( const QRegion & rgn )
in previous version it is possible to pass a bool argument. I have not any idea about converting
a bool to QRect | QRegion | integer positions.
-----------------------
Mahmood Naderan
________________________________
From: Scott Aron Bloom <Scott.Bloom at sabgroup.com>
To: QT mailing list <qt-interest at trolltech.com>
Sent: Sunday, January 25, 2009 9:11:31 AM
Subject: Re: [Qt-interest] problem with porting 'repaint' to Qt4
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/d0da872a/attachment.html
More information about the Qt-interest-old
mailing list