On Fri, Feb 08, 2008 at 09:02:42PM +0100, Pavel Sanda wrote:
> slowly approaching the final destination :)
> 
> > void GuiView::setFullScreen()
> > {
> >     menuBar()->hide();
> >     statusBar()->hide();
> >     dynamic_cast<QFrame*>(this)->setFrameStyle(QFrame::NoFrame);
> 
> this line seqfaults. guiview inherits QFrame?

If it would, the dynamic_cast<> would not be needed.
If it does not, the dynamic_cast<> gives 0 and we happily crash.

> >     dynamic_cast<QFrame*>(d.current_work_area_)->setFrameStyle(
> >             QFrame::NoFrame);
> 
> this line work, we got rid of 1mm margin. 
> still 2 pixel border remain, it has to be from guiview?

Or from your window manager?

Andre'

Reply via email to