qt raise lower方法

  • Post author:
  • Post category:其他


void QWindow::raise()

Raise the window in the windowing system.

Requests that the window be raised to appear above other windows.

在window系统中Raise这个窗口

请求将窗口提升到显示在其他窗口之上。

具体细节如下,如果窗口时弹框或者一系列指定窗口中的一个,那么

raise的效果会在其他设置为置顶窗口之上



[slot] void QWidget::lower()

Lowers the widget to the bottom of the parent widget’s stack.

After this call the widget will be visually behind (and therefore obscured by) any overlapping sibling widgets.

See also

raise

() and

stackUnder

().

lower函数是和raise函数对应的,也是用来改变窗口之间的z序的,

主要功能就是将窗口放于其他窗口之下



void QWidget::stackUnder(

QWidget

*w)

Places the widget under w in the parent widget’s stack.

To make this work, the widget itself and w must be siblings.

See also

raise

() and

lower

().

stackUnder()的功能也是和rase,lower类似的,也是用来改变窗口的z序的,

如果需要改变窗口的z序,可以参考这几个函数



版权声明:本文为a1317338022原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。