QX11Info Class Reference
[QtGui module]
该QX11Info类提供有关X显示配置信息。More…
Methods
__init__ (self)
__init__ (self, QX11Info other)
int cells (self)
int colormap (self)
bool defaultColormap (self)
bool defaultVisual (self)
int depth (self)
int screen (self)
sip.voidptr visual (self)
Static Methods
int appCells (int screen = -1)
str appClass ()
int appColormap (int screen = -1)
bool appDefaultColormap (int screen = -1)
bool appDefaultVisual (int screen = -1)
int appDepth (int screen = -1)
int appDpiX (int screen = -1)
int appDpiY (int screen = -1)
int appRootWindow (int screen = -1)
int appScreen ()
int appTime ()
int appUserTime ()
sip.voidptr appVisual (int screen = -1)
Display display ()
bool isCompositingManagerRunning ()
setAppDpiX (int screen, int dpi)
setAppDpiY (int screen, int dpi)
setAppTime (int time)
setAppUserTime (int time)
Detailed Description
该QX11Info类提供有关X显示配置信息。
这个类提供了两个API :一组非静态函数,提供有关特定部件或像素图的信息,和一组静态函数提供的默认信息的应用程序。
Warning:这个类仅适用于X11 。对于一个可移植的方式,使用查询每个屏幕信息QDesktopWidget。
Method Documentation
QX11Info.__init__ (self)
构造一个空QX11Info对象。
QX11Info.__init__ (self, QX11Info other)
构造的副本other。
int QX11Info.appCells (int screen = -1)
返回在给定的应用程序所使用的细胞数screen。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also cells( ) 。
str QX11Info.appClass ()
返回X11的应用程序类。
See also display( ) 。
int QX11Info.appColormap (int screen = -1)
返回给定的句柄应用程序的彩色地图screen。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also colormap()和defaultColormap( ) 。
bool QX11Info.appDefaultColormap (int screen = -1)
如果应用程序有一个默认的彩色地图上给定的,则返回Truescreen否则返回False 。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
bool QX11Info.appDefaultVisual (int screen = -1)
如果应用程序有一个默认的视觉上给定的,则返回Truescreen否则返回False 。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
int QX11Info.appDepth (int screen = -1)
返回在给定的应用程序所使用的颜色深度(每个像素的位数)screen。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also depth( ) 。
int QX11Info.appDpiX (int screen = -1)
返回给定的水平分辨率screen以每英寸的点数表示。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also setAppDpiX()和appDpiY( ) 。
int QX11Info.appDpiY (int screen = -1)
返回给定的垂直分辨率screen以每英寸的点数表示。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also setAppDpiY()和appDpiX( ) 。
int QX11Info.appRootWindow (int screen = -1)
返回给定的句柄应用程序根窗口screen。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also QApplication.desktop( ) 。
int QX11Info.appScreen ()
返回正在显示的应用程序,其中该屏幕的数量。
See also display()和screen( ) 。
int QX11Info.appTime ()
返回X11的时间。
See also setAppTime()和appUserTime( ) 。
int QX11Info.appUserTime ()
返回X11的用户时间。
See also setAppUserTime()和appTime( ) 。
sip.voidptr QX11Info.appVisual (int screen = -1)
返回当前视觉所使用的应用程序在给定的screen。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also visual()和defaultVisual( ) 。
int QX11Info.cells (self)
返回单元的数目。
See also appCells( ) 。
int QX11Info.colormap (self)
返回的句柄彩色地图。
See also defaultColormap( ) 。
bool QX11Info.defaultColormap (self)
返回True如果有一个默认的彩色地图,否则返回False 。
See also colormap( ) 。
bool QX11Info.defaultVisual (self)
返回True如果有一个默认的视觉享受;否则返回False。
See also visual()和appVisual( ) 。
int QX11Info.depth (self)
返回X显示的色彩深度(每像素位数) 。
See also appDepth( ) 。
Display QX11Info.display ()
返回默认显示为应用程序。
See also appScreen( ) 。
bool QX11Info.isCompositingManagerRunning ()
返回True如果有一个合成器上运行。
此功能被引入Qt的4.4 。
int QX11Info.screen (self)
把屏幕返回当前正在使用的数量。
返回值是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also appScreen( ) 。
QX11Info.setAppDpiX (int screen, int dpi)
设定的给定的水平分辨率screen以通过指定每英寸的点数xdpi。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also appDpiX()和setAppDpiY( ) 。
QX11Info.setAppDpiY (int screen, int dpi)
设定的给定的垂直分辨率screen以通过指定每英寸的点数ydpi。
该screen参数是一个X屏幕号。请注意,如果用户的系统使用的Xinerama (相对于传统的X11多屏幕) ,只有一个X屏幕。使用QDesktopWidget查询有关的Xinerama屏幕上的信息。
See also appDpiY()和setAppDpiX( ) 。
QX11Info.setAppTime (int time)
设置X11的时间由指定的值time。
See also appTime()和setAppUserTime( ) 。
QX11Info.setAppUserTime (int time)
设置所指定的X11用户时间time。
See also appUserTime()和setAppTime( ) 。
sip.voidptr QX11Info.visual (self)
返回当前视觉。
See also appVisual()和defaultVisual( ) 。