Compatibility Members for QWSServer

以下成員源於類 QWSServer are part of the Qt compatibility layer. We advise against using them in new code.

公共函數

QWSServer (int flags , QObject * parent , const char * name )

靜態公共成員

void setDesktopBackground (const QImage & image )
void setDesktopBackground (const QColor & color )

成員函數文檔編製

QWSServer:: QWSServer ( int flags , QObject * parent , const char * name )

Use the two-argument overload and call the QObject::setObjectName () 函數代替。

[static] void QWSServer:: setDesktopBackground (const QImage & image )

Sets the image used as background in the absence of obscuring windows, to be the given image .

使用 setBackground () 函數代替。

例如,若有代碼像

QImage image;
setDesktopBackground(image);
					

可以把它重寫成

QImage image;
setBackground(QBrush(image));
					

[static] void QWSServer:: setDesktopBackground (const QColor & color )

這是重載函數。

Sets the color used as background in the absence of obscuring windows, to be the given color .

使用 setBackground () 函數代替。

例如,若有代碼像

QColor color;
setDesktopBackground(color);
					

可以把它重寫成

QColor color;
setBackground(QBrush(color));