Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Qt 3 Support Members for QPaintDevice

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Functions

int x11Cells () const
Qt::HANDLE x11Colormap () const
bool x11DefaultColormap () const
bool x11DefaultVisual () const
int x11Depth () const
Display * x11Display () const
int x11Screen () const
void * x11Visual () const

Static Public Members

int x11AppCells ( int screen = -1 )
Qt::HANDLE x11AppColormap ( int screen = -1 )
bool x11AppDefaultColormap ( int screen = -1 )
bool x11AppDefaultVisual ( int screen = -1 )
int x11AppDepth ( int screen = -1 )
Display * x11AppDisplay ()
int x11AppDpiX ( int screen = -1 )
int x11AppDpiY ( int screen = -1 )
Qt::HANDLE x11AppRootWindow ( int screen = -1 )
int x11AppScreen ()
void * x11AppVisual ( int screen = -1 )
void x11SetAppDpiX ( int dpi, int screen )
void x11SetAppDpiY ( int dpi, int screen )

Member Function Documentation

int QPaintDevice::x11AppCells ( int screen = -1 ) [static]

Use QX11Info::cells() instead.

For example, if you have code like

 int cells = QPaintDevice::x11AppCells(screen);

you can rewrite it as

 int cells = qApp->x11Info(screen).cells();

See also QWidget::x11Info() and QPixmap::x11Info().

Qt::HANDLE QPaintDevice::x11AppColormap ( int screen = -1 ) [static]

Use QX11Info::colormap() instead.

For example, if you have code like

 unsigned long colormap = QPaintDevice::x11AppColormap(screen);

you can rewrite it as

 unsigned long colormap = qApp->x11Info(screen).colormap();

See also QWidget::x11Info() and QPixmap::x11Info().

bool QPaintDevice::x11AppDefaultColormap ( int screen = -1 ) [static]

Use QX11Info::defaultColormap() instead.

For example, if you have code like

 bool isDefault = QPaintDevice::x11AppDefaultColormap(screen);

you can rewrite it as

 bool isDefault = qApp->x11Info(screen).defaultColormap();

See also QWidget::x11Info() and QPixmap::x11Info().

bool QPaintDevice::x11AppDefaultVisual ( int screen = -1 ) [static]

Use QX11Info::defaultVisual() instead.

For example, if you have code like

 bool isDefault = QPaintDevice::x11AppDefaultVisual(screen);

you can rewrite it as

 bool isDefault = qApp->x11Info(screen).defaultVisual();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11AppDepth ( int screen = -1 ) [static]

Use QX11Info::depth() instead.

For example, if you have code like

 int depth = QPaintDevice::x11AppDepth(screen);

you can rewrite it as

 int depth = qApp->x11Info(screen).depth();

See also QWidget::x11Info() and QPixmap::x11Info().

Display * QPaintDevice::x11AppDisplay () [static]

Use QX11Info::display() instead.

For example, if you have code like

 Display *display = QPaintDevice::x11AppDisplay();

you can rewrite it as

 Display *display = qApp->x11Info().display();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11AppDpiX ( int screen = -1 ) [static]

Use QX11Info::appDpiX() instead.

For example, if you have code like

 bool isDefault = QPaintDevice::x11AppDpiX(screen);

you can rewrite it as

 bool isDefault = qApp->x11Info(screen).appDpiX();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11AppDpiY ( int screen = -1 ) [static]

Use QX11Info::appDpiY() instead.

For example, if you have code like

 bool isDefault = QPaintDevice::x11AppDpiY(screen);

you can rewrite it as

 bool isDefault = qApp->x11Info(screen).appDpiY();

See also QWidget::x11Info() and QPixmap::x11Info().

Qt::HANDLE QPaintDevice::x11AppRootWindow ( int screen = -1 ) [static]

Use QX11Info::appRootWindow() instead.

For example, if you have code like

 unsigned long window = QPaintDevice::x11AppRootWindow(screen);

you can rewrite it as

 unsigned long window = qApp->x11Info(screen).appRootWindow();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11AppScreen () [static]

Use QX11Info::screen() instead.

For example, if you have code like

 int screen = QPaintDevice::x11AppScreen();

you can rewrite it as

 int screen = qApp->x11Info().screen();

See also QWidget::x11Info() and QPixmap::x11Info().

void * QPaintDevice::x11AppVisual ( int screen = -1 ) [static]

Use QX11Info::visual() instead.

For example, if you have code like

 void *visual = QPaintDevice::x11AppVisual(screen);

you can rewrite it as

 void *visual = qApp->x11Info(screen).visual();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11Cells () const

Use QX11Info::cells() instead.

For example, if you have code like

 int cells = widget->x11Cells();

you can rewrite it as

 int cells = widget->x11Info().cells();

See also QWidget::x11Info() and QPixmap::x11Info().

Qt::HANDLE QPaintDevice::x11Colormap () const

Use QX11Info::colormap() instead.

For example, if you have code like

 unsigned long screen = widget->x11Colormap();

you can rewrite it as

 unsigned long screen = widget->x11Info().colormap();

See also QWidget::x11Info() and QPixmap::x11Info().

bool QPaintDevice::x11DefaultColormap () const

Use QX11Info::defaultColormap() instead.

For example, if you have code like

 bool isDefault = widget->x11DefaultColormap();

you can rewrite it as

 bool isDefault = widget->x11Info().defaultColormap();

See also QWidget::x11Info() and QPixmap::x11Info().

bool QPaintDevice::x11DefaultVisual () const

Use QX11Info::defaultVisual() instead.

For example, if you have code like

 bool isDefault = widget->x11DefaultVisual();

you can rewrite it as

 bool isDefault = widget->x11Info().defaultVisual();

See also QWidget::x11Info() and QPixmap::x11Info().

int QPaintDevice::x11Depth () const

Use QX11Info::depth() instead.

For example, if you have code like

 int depth = widget->x11Depth();

you can rewrite it as

 int depth = widget->x11Info().depth();

See also QWidget::x11Info() and QPixmap::x11Info().

Display * QPaintDevice::x11Display () const

Use QX11Info::display() instead.

For example, if you have code like

 Display *display = widget->x11Display();

you can rewrite it as

 Display *display = QX11Info::display();

See also QWidget::x11Info() and QX11Info::display().

int QPaintDevice::x11Screen () const

Use QX11Info::screen() instead.

For example, if you have code like

 int screen = widget->x11Screen();

you can rewrite it as

 int screen = widget->x11Info().screen();

See also QWidget::x11Info() and QPixmap::x11Info().

void QPaintDevice::x11SetAppDpiX ( int dpi, int screen ) [static]

Use QX11Info::setAppDpiX() instead.

void QPaintDevice::x11SetAppDpiY ( int dpi, int screen ) [static]

Use QX11Info::setAppDpiY() instead.

void * QPaintDevice::x11Visual () const

Use QX11Info::visual() instead.

For example, if you have code like

 void *visual = widget->x11Visual();

you can rewrite it as

 void *visual = widget->x11Info().visual();

See also QWidget::x11Info() and QPixmap::x11Info().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Microsoft ouvre aux autres compilateurs C++ AMP, la spécification pour la conception d'applications parallèles C++ utilisant le GPU 22
  2. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  3. RIM : « 13 % des développeurs ont gagné plus de 100 000 $ sur l'AppWord », Qt et open-source au menu du BlackBerry DevCon Europe 0
  4. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 12
  5. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
Page suivante

Le Qt Developer Network au hasard

Logo

Compiler l'add-in Qt de Visual Studio

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.7
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web