Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, January 2008
Full screen


Message 1 in thread

Hi all!!!

How can I set full screen mode in a QMainWindow???

Cheers

-- 
 [ signature omitted ] 

Message 2 in thread

Dear Pedro,

You may want to read this:
http://doc.trolltech.com/4.3/qwidget.html#showFullScreen

Regards,

Alex

| pedro mateo || a écrit :
> Hi all!!!
>
> How can I set full screen mode in a QMainWindow???
>
> Cheers
>
> -- 
> Pedro Luis Mateo Navarro || pedrolmn@xxxxxxxxx 
> <mailto:pedrolmn@xxxxxxxxx> _ pedromateo@xxxxxxxxx 
> <mailto:pedromateo@xxxxxxxxx>
>   > _phone: (+34) 626 14 29 33 or  (+34) 968 39 82 58
>   > _web: www.pedromana.com <http://www.pedromana.com>
>   > _msn: pedrolmn@xxxxxxxxxxx <mailto:pedrolmn@xxxxxxxxxxx> 


-- 
 [ signature omitted ] 

Message 3 in thread

By reading (or searching) the docs:

> void QWidget::setWindowState ( Qt::WindowStates windowState )
> 
> Sets the window state to windowState. The window state is a OR'ed combination
> of Qt::WindowState: Qt::WindowMinimized, Qt::WindowMaximized,
> Qt::WindowFullScreen, and Qt::WindowActive.
> 
> If the window is not visible (i.e. isVisible() returns false), the window
> state will take effect when show() is called. For visible windows, the change
> is immediate. For example, to toggle between full-screen and normal mode, use
> the following code:
> 
>       w->setWindowState(w->windowState() ^ Qt::WindowFullScreen);
> 
> In order to restore and activate a minimized window (while preserving its
> maximized and/or full-screen state), use the following:
> 
>       w->setWindowState(w->windowState() & ~Qt::WindowMinimized |
> Qt::WindowActive);
> 
> Note: On some window systems Qt::WindowActive is not immediate, and may be
> ignored in certain cases. When the window state changes, the widget receives a
> changeEvent() of type QEvent::WindowStateChange. See also Qt::WindowState and
> windowState(). 

I simply did a search for "full screen". QMainWindow derives from QWidget,
so it inherits this ability.

Keith
**Please do not reply to me, reply to the list.**

On 01-30-2008 11:29 AM, "| pedro mateo ||" wrote:

> Hi all!!!
> 
> How can I set full screen mode in a QMainWindow???
> 
> Cheers