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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

Q3ListBoxPixmap Class Reference
[Qt3Support module]

The Q3ListBoxPixmap class provides list box items with a pixmap and optional text. More...

 #include <Q3ListBoxPixmap>

This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.

Inherits Q3ListBoxItem.

Public Functions

Protected Functions

  • virtual void paint ( QPainter * painter )

Detailed Description

The Q3ListBoxPixmap class provides list box items with a pixmap and optional text.

Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap.

See also Q3ListBox and Q3ListBoxItem.


Member Function Documentation

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap )

Constructs a new list box item in list box listbox showing the pixmap pixmap.

Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pixmap )

Constructs a new list box item showing the pixmap pixmap.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap, Q3ListBoxItem * after )

Constructs a new list box item in list box listbox showing the pixmap pixmap. The item gets inserted after the item after, or at the beginning if after is 0.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text )

Constructs a new list box item in list box listbox showing the pixmap pix and the text text.

Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pix, const QString & text )

Constructs a new list box item showing the pixmap pix and the text to text.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text, Q3ListBoxItem * after )

Constructs a new list box item in list box listbox showing the pixmap pix and the string text. The item gets inserted after the item after, or at the beginning if after is 0.

Q3ListBoxPixmap::~Q3ListBoxPixmap ()

Destroys the item.

int Q3ListBoxPixmap::height ( const Q3ListBox * lb ) const   [virtual]

Returns the height of the pixmap in list box lb.

Reimplemented from Q3ListBoxItem.

See also paint() and width().

void Q3ListBoxPixmap::paint ( QPainter * painter )   [virtual protected]

Draws the pixmap using painter.

Reimplemented from Q3ListBoxItem.

const QPixmap * Q3ListBoxPixmap::pixmap () const   [virtual]

Returns the pixmap associated with the item.

Reimplemented from Q3ListBoxItem.

int Q3ListBoxPixmap::width ( const Q3ListBox * lb ) const   [virtual]

Returns the width of the pixmap plus some margin in list box lb.

Reimplemented from Q3ListBoxItem.

See also paint() and height().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 64
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. 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
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Le Qt Developer Network au hasard

Logo

Comment fermer une application

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.2
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