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 () 代替。