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  · 

Q3Button Class Reference

The Q3Button class is a compatibility base class of button widgets More...

 #include <Q3Button>

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: QAbstractButton.

Public Functions

Q3Button ( QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0 )
~Q3Button ()

Protected Functions

virtual void drawButton ( QPainter * painter )
virtual void drawButtonLabel ( QPainter * painter )

Reimplemented Protected Functions

virtual void paintEvent ( QPaintEvent * event )

Additional Inherited Members

Detailed Description

The Q3Button class is a compatibility base class of button widgets

In new code, use QAbstractButton.

To subclass Q3Button, you must reimplement at least drawButton() (to draw the button's outline) and drawButtonLabel() (to draw its text or pixmap). It is generally advisable to reimplement sizeHint() as well, and sometimes hitButton() (to determine whether a button press is within the button).

Member Function Documentation

Q3Button::Q3Button ( QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0 )

Constructs a standard button called name with parent parent, using the widget flags f.

Q3Button::~Q3Button ()

Destroys the button.

void Q3Button::drawButton ( QPainter * painter ) [virtual protected]

Draws the button on the given painter. The default implementation does nothing.

This virtual function is reimplemented by subclasses to draw real buttons. At some point, these reimplementations should call drawButtonLabel().

See also drawButtonLabel() and paintEvent().

void Q3Button::drawButtonLabel ( QPainter * painter ) [virtual protected]

Draws the button text or pixmap on the given painter.

This virtual function is reimplemented by subclasses to draw real buttons. It is invoked by drawButton().

See also drawButton() and paintEvent().

void Q3Button::paintEvent ( QPaintEvent * event ) [virtual protected]

Reimplemented from QWidget::paintEvent().

Handles paint events, received in event, for buttons. Small and typically complex buttons are painted double-buffered to reduce flicker. The actually drawing is done in the virtual functions drawButton() and drawButtonLabel().

See also drawButton() and drawButtonLabel().

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