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?

>       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?

pavel

> Having had a look at the doc it seems that you could also use 
> QWidget::setContentsMargins() but this would require that you backup the 
> non-fullscreen values.
>
> Hope that helps,
> Abdel.

<<attachment: border.jpg>>

Reply via email to