Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# QX11Info Class Reference

The QX11Info class provides information about the X display configuration. More...

    #include <QX11Info>

- List of all members, including inherited members
- Compatibility members

### Public Functions

- QX11Info ()
- QX11Info ( const QX11Info & other )
- ~QX11Info ()
- int cells () const
- Qt::HANDLE colormap () const
- bool defaultColormap () const
- bool defaultVisual () const
- int depth () const
- int screen () const
- void * visual () const
- QX11Info & operator= ( const QX11Info & other )

### Static Public Members

- int appCells ( int screen = -1 )
- Qt::HANDLE 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 )
- Qt::HANDLE appRootWindow ( int screen = -1 )
- int appScreen ()
- void * appVisual ( int screen = -1 )
- Display * display ()
- void setAppDpiX ( int screen, int xdpi )
- void setAppDpiY ( int screen, int ydpi )

## Detailed Description

The QX11Info class provides information about the X display configuration.

## Member Function Documentation

### QX11Info::QX11Info ()

Constructs an information object to describe the X server's configuration.

### QX11Info::QX11Info ( const QX11Info & other )

Copy constructor. Constructs a copy of the other instance.

### QX11Info::~QX11Info ()

Destroys the information object.

### int QX11Info::appCells ( int screen = -1 ) `[static]`

Returns the number of cells used by the application on the given screen.

See also cells().

### Qt::HANDLE QX11Info::appColormap ( int screen = -1 ) `[static]`

Returns a handle for the application's color map on the given screen.

### bool QX11Info::appDefaultColormap ( int screen = -1 ) `[static]`

Returns true if the application has a default color map on the given screen; otherwise returns false.

### bool QX11Info::appDefaultVisual ( int screen = -1 ) `[static]`

Returns true if the application has a default visual on the given screen; otherwise returns false.

### int QX11Info::appDepth ( int screen = -1 ) `[static]`

Returns the color depth (bits per pixel) used by the application on the given screen.

See also depth().

### int QX11Info::appDpiX ( int screen = -1 ) `[static]`

Returns the horizontal resolution of the given screen in terms of the number of dots per inch.

See also appDpiY(), setAppDpiX(), and setAppDpiY().

### int QX11Info::appDpiY ( int screen = -1 ) `[static]`

Returns the vertical resolution of the given screen in terms of the number of dots per inch.

See also appDpiX(), setAppDpiX(), and setAppDpiY().

### Qt::HANDLE QX11Info::appRootWindow ( int screen = -1 ) `[static]`

Returns a handle for the applications root window on the given screen.

### int QX11Info::appScreen () `[static]`

Returns the number of the screen where the application is being displayed.

### void * QX11Info::appVisual ( int screen = -1 ) `[static]`

Returns the current visual used by the application on the given screen.

### int QX11Info::cells () const

Returns the number of cells.

### Qt::HANDLE QX11Info::colormap () const

Returns a handle for the color map.

### bool QX11Info::defaultColormap () const

Returns true if there is a default color map; otherwise returns false.

### bool QX11Info::defaultVisual () const

Returns true if there is a default visual; otherwise returns false.

### int QX11Info::depth () const

Returns the color depth (bits per pixel) of the X display.

### Display * QX11Info::display () `[static]`

### int QX11Info::screen () const

Returns the number of the screen currently in use.

### void QX11Info::setAppDpiX ( int screen, int xdpi ) `[static]`

Sets the horizontal resolution of the given screen to the number of dots per inch specified by xdpi.

See also appDpiX(), appDpiY(), and setAppDpiY().

### void QX11Info::setAppDpiY ( int screen, int ydpi ) `[static]`

Sets the vertical resolution of the given screen to the number of dots per inch specified by ydpi.

See also appDpiX(), appDpiY(), and setAppDpiX().

### void * QX11Info::visual () const

Returns the current visual.

### QX11Info & QX11Info::operator= ( const QX11Info & other )

Assigns other to this information object and returns a reference to this object.