Obsolete Members for QWidget

以下成员源于类 QWidget 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QWidget (QWidget * parent , const char * name , Qt::WindowFlags f = 0)
(obsolete) QPoint backgroundOffset () const
(obsolete) BackgroundOrigin backgroundOrigin () const
(obsolete) bool isEnabledToTLW () const
(obsolete) bool isTopLevel () const
(obsolete) void setBackgroundOrigin (BackgroundOrigin background )
(obsolete) void setWindowSurface (QWindowSurface * surface )
(obsolete) QWidget * topLevelWidget () const

保护函数

(obsolete) virtual void languageChange ()
(obsolete) void resetInputContext ()

成员函数文档编制

QWidget:: QWidget ( QWidget * parent , const char * name , Qt::WindowFlags f = 0)

这是重载函数。

QPoint QWidget:: backgroundOffset () const

Always returns QPoint().

BackgroundOrigin QWidget:: backgroundOrigin () const

始终返回 WindowOrigin .

另请参阅 setBackgroundOrigin ().

bool QWidget:: isEnabledToTLW () const

This function is deprecated. It is equivalent to isEnabled ()

bool QWidget:: isTopLevel () const

使用 isWindow () 代替。

[virtual protected] void QWidget:: languageChange ()

[protected] void QWidget:: resetInputContext ()

This function can be called on the widget that currently has focus to reset the input method operating on it.

This function is providing for convenience, instead you should use reset() on the input context that was returned by inputContext ().

另请参阅 QInputContext , inputContext (),和 QInputContext::reset ().

void QWidget:: setBackgroundOrigin ( BackgroundOrigin background )

另请参阅 backgroundOrigin ().

void QWidget:: setWindowSurface ( QWindowSurface * surface )

Sets the window surface to be the surface 指定。 QWidget takes will ownership of the surface . widget itself is deleted.

该函数在 Qt 4.2 引入。

另请参阅 windowSurface ().

QWidget * QWidget:: topLevelWidget () const

使用 window () 代替。