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