以下成员源于类 QTest 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
| 
(obsolete)
								bool | qWaitForWindowShown (QWidget * widget , int timeout = 5000) | 
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
使用 qWaitForWindowExposed () 代替。
						等待
						
							timeout
						
						milliseconds or until the
						
							widget
						
						's window is exposed. Returns
						
true
						
						if
						
widget
						
						's window is exposed within
						
							timeout
						
						milliseconds, otherwise returns
						
false
						
						.
					
This function does the same as qWaitForWindowExposed ().
范例:
QWidget widget; widget.show(); QTest::qWaitForWindowShown(&widget);
该函数在 Qt 5.0 引入。
另请参阅 qWaitForWindowActive () 和 qWaitForWindowExposed ().