Obsolete Members for QLayout

以下成員源於類 QLayout 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

特性

公共函數

(obsolete) dumpObjectInfo ()
(obsolete) dumpObjectTree ()

特性文檔編製

margin : int

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This property holds the width of the outside border of the layout

使用 setContentsMargins () 和 getContentsMargins () 代替。

訪問函數:

int margin () const
void setMargin (int margin )

另請參閱 contentsRect () 和 spacing .

成員函數文檔編製

int QLayout:: margin () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

注意: getter 函數對於特性 margin .

另請參閱 setMargin ().

void QLayout:: setMargin ( int margin )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

注意: setter 函數對於特性 margin .

另請參閱 margin ().