[Qt-interest] problem with porting 'repaint' to Qt4
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Sun Jan 25 07:09:08 CET 2009
READ the QT3->QT4 support docs.. It clearly says what to do for all the
old QT3 calls.
________________________________
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mahmood Naderan
Sent: 2009-01-24 21:51
To: QT mailing list
Subject: Re: [Qt-interest] problem with porting 'repaint' to Qt4
> 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/a2a7da1f/attachment.html
More information about the Qt-interest-old
mailing list