Obsolete Members for QDialog

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

公共函数

(obsolete) QWidget * extension () const
(obsolete) Qt::Orientation orientation () const
(obsolete) void setExtension (QWidget * extension )
(obsolete) void setOrientation (Qt::Orientation orientation )

公共槽

(obsolete) void showExtension (bool showIt )

成员函数文档编制

QWidget *QDialog:: extension () const

Returns the dialog's extension or 0 if no extension has been defined.

Instead of using this functionality, we recommend that you simply call show () 或 hide () on the part of the dialog that you want to use as an extension. See the 扩展范例 了解细节。

另请参阅 setExtension (), showExtension (),和 setOrientation ().

Qt::Orientation QDialog:: orientation () const

Returns the dialog's extension orientation.

Instead of using this functionality, we recommend that you simply call show () 或 hide () on the part of the dialog that you want to use as an extension. See the 扩展范例 了解细节。

另请参阅 setOrientation () 和 extension ().

void QDialog:: setExtension ( QWidget * extension )

Sets the widget, extension , to be the dialog's extension, deleting any previous extension. The dialog takes ownership of the extension. Note that if 0 is passed any existing extension will be deleted. This function must only be called while the dialog is hidden.

Instead of using this functionality, we recommend that you simply call show () 或 hide () on the part of the dialog that you want to use as an extension. See the 扩展范例 了解细节。

另请参阅 extension (), showExtension (),和 setOrientation ().

void QDialog:: setOrientation ( Qt::Orientation orientation )

orientation is Qt::Horizontal , the extension will be displayed to the right of the dialog's main area. If orientation is Qt::Vertical , the extension will be displayed below the dialog's main area.

Instead of using this functionality, we recommend that you simply call show () 或 hide () on the part of the dialog that you want to use as an extension. See the 扩展范例 了解细节。

另请参阅 orientation () 和 setExtension ().

[slot] void QDialog:: showExtension ( bool showIt )

showIt is true, the dialog's extension is shown; otherwise the extension is hidden.

Instead of using this functionality, we recommend that you simply call show () 或 hide () on the part of the dialog that you want to use as an extension. See the 扩展范例 了解细节。

另请参阅 show (), setExtension (),和 setOrientation ().