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  · 

Viewport Class

Inherits: QQuickPaintedItem and QQuickViewport.

Public Types

enum PerformanceHint { FastFBOResizing }
flags PerformanceHints
enum RenderMode { UnknownRender, DirectRender, BufferedRender }
enum RenderTarget { Image, FramebufferObject, InvertedYFramebufferObject }

Properties

Public Functions

QQuickPaintedItem(QQuickItem * parent = 0)
Viewport(QQuickItem * parent = 0)
virtual ~QQuickPaintedItem()
~Viewport()
bool antialiasing() const
virtual bool blending() const = 0
QGLCamera * camera() const
virtual void classBegin() = 0
virtual void componentComplete() = 0
QRectF contentsBoundingRect() const
qreal contentsScale() const
QSize contentsSize() const
QColor fillColor() const
bool fovzoom() const
QGLLightParameters * light() const
QGLLightModel * lightModel() const
bool mipmap() const
bool navigation() const
bool opaquePainting() const
virtual void paint(QPainter * painter) = 0
PerformanceHints performanceHints() const
bool picking() const
virtual void registerEarlyDrawObject(QObject * obj, int order)
virtual int registerPickableObject(QObject * obj) = 0
RenderMode renderMode() const
RenderTarget renderTarget() const
void resetContentsSize()
void setAntialiasing(bool enable)
void setBlending(bool value)
void setCamera(QGLCamera * value)
void setContentsScale(qreal)
void setContentsSize(const QSize &)
void setFillColor(const QColor &)
void setFovzoom(bool value)
void setLight(QGLLightParameters * value)
void setLightModel(QGLLightModel * value)
void setMipmap(bool enable)
void setNavigation(bool value)
void setOpaquePainting(bool opaque)
void setPerformanceHint(PerformanceHint hint, bool enabled = true)
void setPerformanceHints(PerformanceHints hints)
void setPicking(bool value)
void setRenderMode(RenderMode mode)
void setRenderTarget(RenderTarget target)
void setShowPicking(bool value)
void setShowSceneGraph(bool show)
bool showPicking() const
bool showSceneGraph() const
void update(const QRect & rect = QRect())
virtual void update3d() = 0

Reimplemented Public Functions

virtual bool blending() const
virtual void paint(QPainter * painter)
virtual int registerPickableObject(QObject * obj)
  • 88 public functions inherited from QQuickItem
  • 31 public functions inherited from QObject

Public Slots

virtual void update3d()

Signals

void contentsScaleChanged()
void contentsSizeChanged()
void fillColorChanged()
void renderTargetChanged()
void showSceneGraphChanged()
void viewportChanged()

Protected Functions

virtual QSGNode * updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData * data)

Reimplemented Protected Functions

virtual void geometryChanged(const QRectF & newGeometry, const QRectF & oldGeometry)
virtual void hoverEnterEvent(QHoverEvent * event)
virtual void hoverLeaveEvent(QHoverEvent * event)
virtual void hoverMoveEvent(QHoverEvent * event)
virtual void itemChange(QQuickItem::ItemChange change, const ItemChangeData & value)
virtual void keyPressEvent(QKeyEvent * event)
virtual void mouseDoubleClickEvent(QMouseEvent * event)
virtual void mouseMoveEvent(QMouseEvent * event)
virtual void mousePressEvent(QMouseEvent * event)
virtual void mouseReleaseEvent(QMouseEvent * event)
virtual QSGNode * updatePaintNode(QSGNode *, UpdatePaintNodeData *)
virtual void wheelEvent(QWheelEvent * event)
  • 37 protected functions inherited from QQuickItem
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 11 static public members inherited from QObject

Member Type Documentation

enum Viewport::RenderMode

Property Documentation

blending : bool

Access functions:

virtual bool blending() const
void setBlending(bool value)

Notifier signal:

void viewportChanged()

camera : QGLCamera *

Access functions:

QGLCamera * camera() const
void setCamera(QGLCamera * value)

fillColor : QColor

Access functions:

QColor fillColor() const
void setFillColor(const QColor &)

Notifier signal:

void viewportChanged()

fovzoom : bool

Access functions:

bool fovzoom() const
void setFovzoom(bool value)

Notifier signal:

void viewportChanged()

light : QGLLightParameters *

Access functions:

QGLLightParameters * light() const
void setLight(QGLLightParameters * value)

Notifier signal:

void viewportChanged()

lightModel : QGLLightModel *

Access functions:

QGLLightModel * lightModel() const
void setLightModel(QGLLightModel * value)

Notifier signal:

void viewportChanged()

navigation : bool

Access functions:

bool navigation() const
void setNavigation(bool value)

Notifier signal:

void viewportChanged()

picking : bool

Access functions:

bool picking() const
void setPicking(bool value)

Notifier signal:

void viewportChanged()

renderMode : RenderMode

Access functions:

RenderMode renderMode() const
void setRenderMode(RenderMode mode)

Notifier signal:

void viewportChanged()

showPicking : bool

Access functions:

bool showPicking() const
void setShowPicking(bool value)

Notifier signal:

void viewportChanged()

showSceneGraph : bool

Access functions:

bool showSceneGraph() const
void setShowSceneGraph(bool show)

Notifier signal:

void showSceneGraphChanged()

Member Function Documentation

Viewport::Viewport(QQuickItem * parent = 0)

Viewport::~Viewport()

void Viewport::geometryChanged(const QRectF & newGeometry, const QRectF & oldGeometry) [virtual protected]

void Viewport::hoverEnterEvent(QHoverEvent * event) [virtual protected]

void Viewport::hoverLeaveEvent(QHoverEvent * event) [virtual protected]

void Viewport::hoverMoveEvent(QHoverEvent * event) [virtual protected]

void Viewport::itemChange(QQuickItem::ItemChange change, const ItemChangeData & value) [virtual protected]

void Viewport::keyPressEvent(QKeyEvent * event) [virtual protected]

void Viewport::mouseDoubleClickEvent(QMouseEvent * event) [virtual protected]

void Viewport::mouseMoveEvent(QMouseEvent * event) [virtual protected]

void Viewport::mousePressEvent(QMouseEvent * event) [virtual protected]

void Viewport::mouseReleaseEvent(QMouseEvent * event) [virtual protected]

void Viewport::paint(QPainter * painter) [virtual]

void Viewport::registerEarlyDrawObject(QObject * obj, int order) [virtual]

int Viewport::registerPickableObject(QObject * obj) [virtual]

void Viewport::update3d() [virtual slot]

QSGNode * Viewport::updatePaintNode(QSGNode *, UpdatePaintNodeData *) [virtual protected]

void Viewport::wheelEvent(QWheelEvent * event) [virtual protected]

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 5.0-snapshot
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