Obsolete Members for QList

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

公共函数

(弃用) QList<T> toList () const
(弃用) QList<T> toVector () const

静态公共成员

(弃用) QList<T> fromList (const QList<T> & list )
(弃用) QList<T> fromVector (const QList<T> & list )

成员函数文档编制

[noexcept, deprecated] QList < T > QList:: toList () const

[noexcept, deprecated] QList < T > QList:: toVector () const

This function is deprecated. We strongly advise against using it in new code.

A no-op in Qt 6. Provided for backwards compatibility with Qt 5, where QList and QVector where two different types.

Returns this list.

[static noexcept, deprecated] QList < T > QList:: fromList (const QList < T > & list )

[static noexcept, deprecated] QList < T > QList:: fromVector (const QList < T > & list )

This function is deprecated. We strongly advise against using it in new code.

A no-op in Qt 6. Provided for backwards compatibility with Qt 5, where QList and QVector were two different types.

Returns this list.