[PyKDE] QDockArea layouts

Phil Thompson phil at riverbankcomputing.co.uk
Wed Nov 5 10:57:01 GMT 2003


On Wednesday 05 November 2003 9:26 am, Derek Fountain wrote:
> The QDockArea documentation describes these methods:
>
> QTextStream & operator<< ( QTextStream & ts, const QDockArea & dockArea )
> QTextStream & operator>> ( QTextStream & ts, QDockArea & dockArea )
>
> I'd like to be able to save my layout (to a QSettings file) and restore it
> when the application restart. The above methods appear to be the mechanism
> I need. How are they implemented and used in PyQt?

They aren't, but they are easy to add if you rebuild PyQt. (They'll be in the 
next snapshot.)

Look in qtextstream.sip and find the equivalent operators for QMainWindow. 
Copy them, replacing QMainWindow with QDockArea.

Phil




More information about the PyQt mailing list