以下成員源於類 QDesktopWidget 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
primaryScreen
: const int
(obsolete)
screenCount
: const int
(obsolete)
virtualDesktop
: const bool
(obsolete)
windowIconText
: QString
(obsolete)
const QRect
|
availableGeometry (int screen = -1) const |
(obsolete)
const QRect
|
availableGeometry (const QPoint & p ) const |
(obsolete)
|
dumpObjectInfo () |
(obsolete)
|
dumpObjectTree () |
(obsolete)
bool
|
isEnabledToTLW () const |
(obsolete)
bool
|
isTopLevel () const |
(obsolete)
int
|
numScreens () const |
(obsolete)
QWidget *
|
screen (int screen = -1) |
(obsolete)
const QRect
|
screenGeometry (int screen = -1) const |
(obsolete)
const QRect
|
screenGeometry (const QPoint & p ) const |
(obsolete)
int
|
screenNumber (const QPoint & point ) const |
(obsolete)
QWidget *
|
topLevelWidget () const |
(obsolete)
void
|
resized (int screen ) |
(obsolete)
void
|
workAreaResized (int screen ) |
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the available geometry of the screen with index screen . What is available will be subrect of screenGeometry () based on what the platform decides is available (for example excludes the dock and menu bar on macOS , or the task bar on Windows). The default screen is used if screen 為 -1。
使用 QGuiApplication::screens () 代替。
另請參閱 screenNumber (), screenGeometry (),和 QScreen::availableGeometry ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
返迴屏幕的可用幾何體,其包含 p .
使用 QGuiApplication::screenAt () 代替。
另請參閱 screenGeometry ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴可用屏幕的編號。
使用 QGuiApplication::screens () 代替。
另請參閱 primaryScreen .
[signal]
void
QDesktopWidget::
primaryScreenChanged
()
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此信號被發射每當首要屏幕改變時。
注意: 這並不意味著 QDesktopWidget::primaryScreen 索引必然不同,但現在它會引用新的首要屏幕。
使用 QGuiApplication::primaryScreenChanged () 代替。
該函數在 Qt 5.6 引入。
注意: 通知程序信號對於特性 primaryScreen .
另請參閱 primaryScreen and screenGeometry ().
[signal]
void
QDesktopWidget::
resized
(
int
screen
)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此信號被發射當尺寸對於 screen 改變。
使用 QScreen::geometryChanged () 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns a widget that represents the screen with index screen (a value of -1 means the default screen).
If the system uses a virtual desktop, the returned widget will have the geometry of the entire virtual desktop; i.e., bounding every screen .
使用 QScreen 代替。
另請參閱 primaryScreen , screenCount ,和 virtualDesktop .
[signal]
void
QDesktopWidget::
screenCountChanged
(
int
newCount
)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此信號被發射當屏幕數改變成 newCount .
使用 QGuiApplication::screenAdded and QGuiApplication::screenRemoved () 代替。
該函數在 Qt 4.6 引入。
注意: 通知程序信號對於特性 screenCount .
另請參閱 screenCount .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the geometry of the screen with index screen . The default screen is used if screen 為 -1。
使用 QGuiApplication::screens () 代替。
另請參閱 screenNumber ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
返迴屏幕的幾何體,其包含 p .
使用 QGuiApplication::screenAt () 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
Returns the index of the screen that contains the point , or the screen which is the shortest distance from the point .
使用 QGuiApplication::screenAt () 代替。
另請參閱 primaryScreen .
[signal]
void
QDesktopWidget::
workAreaResized
(
int
screen
)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此信號發射,當工作區域可用於 screen 改變。
使用 QScreen::availableGeometryChanged () 代替。