• 9444阅读
  • 1回复

【提问】使一个弹出的窗口最大化的函数是什么? [复制链接]

上一主题 下一主题
离线guhuo
 
只看楼主 倒序阅读 楼主  发表于: 2005-09-26
谢谢 :)
嵌入式linux嘿嘿
qq:
15416920
离线XChinux

只看该作者 1楼 发表于: 2005-09-26
这个问题问得很没水平,
查一下Qt Reference就知道了.
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 mormal 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.
See also Qt::WindowState and windowState().
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个