Obsolete Members for QWidget

The following members of class QWidget are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(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

Protected Functions

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

Member Function Documentation

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

This is an overloaded function.

QPoint QWidget::backgroundOffset() const

Always returns QPoint().

BackgroundOrigin QWidget::backgroundOrigin() const

Always returns WindowOrigin.

See also setBackgroundOrigin().

bool QWidget::isEnabledToTLW() const

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

bool QWidget::isTopLevel() const

Use isWindow() instead.

[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().

See also QInputContext, inputContext(), and QInputContext::reset().

void QWidget::setBackgroundOrigin(BackgroundOrigin background)

See also backgroundOrigin().

void QWidget::setWindowSurface(QWindowSurface * surface)

Sets the window surface to be the surface specified. The QWidget takes will ownership of the surface. widget itself is deleted.

This function was introduced in Qt 4.2.

See also windowSurface().

QWidget * QWidget::topLevelWidget() const

Use window() instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.