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  · 

QSizeGrip Class Reference
[QtGui module]

The QSizeGrip class provides a corner-grip for resizing a top-level window. More...

#include <QSizeGrip>

Inherits QWidget.

Public Functions

  • 184 public functions inherited from QWidget
  • 28 public functions inherited from QObject
  • 10 public functions inherited from QPaintDevice

Protected Functions

  • 39 protected functions inherited from QWidget
  • 7 protected functions inherited from QObject

Additional Inherited Members

  • 52 properties inherited from QWidget
  • 1 property inherited from QObject
  • 17 public slots inherited from QWidget
  • 1 public slot inherited from QObject
  • 1 signal inherited from QWidget
  • 1 signal inherited from QObject
  • 4 static public members inherited from QWidget
  • 4 static public members inherited from QObject

Detailed Description

The QSizeGrip class provides a corner-grip for resizing a top-level window.

This widget works like the standard Windows resize handle. In the X11 version this resize handle generally works differently from the one provided by the system; we hope to reduce this difference in the future.

Put this widget anywhere in a widget tree and the user can use it to resize the top-level window. Generally, this should be in the lower right-hand corner. Note that QStatusBar already uses this widget, so if you have a status bar (e.g. you are using QMainWindow), then you don't need to use this widget explicitly.

On some platforms the sizegrip automatically hides itself when the window is shown full screen or maximised.

Screenshot in Motif style Screenshot in Windows style

See also QStatusBar and QWidget::windowState().


Member Function Documentation

QSizeGrip::QSizeGrip ( QWidget * parent )

Constructs a resize corner as a child widget of parent.

QSizeGrip::~QSizeGrip ()

Destroys the size grip.

void QSizeGrip::mouseMoveEvent ( QMouseEvent * e )   [virtual protected]

Resizes the top-level widget containing this widget. The event is in e.

Reimplemented from QWidget.

void QSizeGrip::mousePressEvent ( QMouseEvent * e )   [virtual protected]

Primes the resize operation. The event is in e.

Reimplemented from QWidget.

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

Paints the resize grip. Resize grips are usually rendered as small diagonal textured lines in the lower-right corner. The event is in event.

Reimplemented from QWidget.

QSize QSizeGrip::sizeHint () const   [virtual]

Returns the size grip's size hint; this is a small size.

Reimplemented from QWidget.

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