Qt-interest Archive, March 2008
Porting QTextStream & operator<< ( QTextStream & ts, const QMainWindow & mainWindow )
Message 1 in thread
Hi,
What is the way to port from Qt3 following operators missing in Qt4 :
* QTextStream & *operator<<* <cid:part1.01030502.07070302@xxxxxxxxx>
( QTextStream & ts, const QMainWindow & mainWindow )
* QTextStream & *operator>>* <cid:part2.03030302.05060406@xxxxxxxxx>
( QTextStream & ts, QMainWindow & mainWindow )
Many thanks,
Vladimir
--
[ signature omitted ]
Message 2 in thread
Vladimir Romanovskiy wrote:
> What is the way to port from Qt3 following operators missing in Qt4 :
>
> * QTextStream & *operator<<*
> <cid:part1.01030502.07070302@xxxxxxxxx>
> ( QTextStream & ts, const QMainWindow & mainWindow )
> * QTextStream & *operator>>*
> <cid:part2.03030302.05060406@xxxxxxxxx>
> ( QTextStream & ts, QMainWindow & mainWindow )
This capability has been replaced by QMainWindow::saveState and
QMainWindow::restoreState. They put the toolbar/dockwindow state into a
QByteArray that can be stored in a file or in QSettings. Note, however,
that the result is now binary, not text and that Qt3 settings cannot be
read into Qt4.
Rob
--
[ signature omitted ]