Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
graphicsview.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QStandardItem>
#include <QtCore/qmimedata.h>
#include <QtGui/qdrag.h>
#include <QtOpenGLWidgets/qopenglwidget.h>
#include <QtPrintSupport/qprintdialog.h>
#include <QtPrintSupport/qprinter.h>
#include <QtWidgets/QGraphicsSceneMouseEvent>
#include <QtWidgets/qdialog.h>
#include <QtWidgets/qgraphicsview.h>
+ Include dependency graph for graphicsview.cpp:

Go to the source code of this file.

Classes

class  CustomItem
 [0] More...
 

Functions

void graphicsview_snippet_main ()
 
void myPopulateScene (QGraphicsScene *)
 
void snippetThatUsesMyPopulateScene ()
 
void printScene ()
 
void pixmapScene ()
 
void viewScene ()
 [5]
 

Function Documentation

◆ graphicsview_snippet_main()

void graphicsview_snippet_main ( )

[0]

[0]

Definition at line 13 of file graphicsview.cpp.

References QGraphicsScene::addRect(), item, QGraphicsScene::itemAt(), Q_UNUSED, rect, and scene.

+ Here is the call graph for this function:

◆ myPopulateScene()

void myPopulateScene ( QGraphicsScene * )

Definition at line 25 of file graphicsview.cpp.

Referenced by snippetThatUsesMyPopulateScene().

+ Here is the caller graph for this function:

◆ pixmapScene()

void pixmapScene ( )

[4]

[4]

Definition at line 66 of file graphicsview.cpp.

References QGraphicsScene::addRect(), QPainter::Antialiasing, Qt::black, QPainter::end(), Qt::green, painter, pixmap, QGraphicsScene::render(), scene, and QPainter::setRenderHint().

+ Here is the call graph for this function:

◆ printScene()

void printScene ( )

[3]

[3]

Definition at line 51 of file graphicsview.cpp.

References QDialog::Accepted, QGraphicsScene::addRect(), QPainter::Antialiasing, Qt::black, exec(), Qt::green, painter, QGraphicsScene::render(), scene, and QPainter::setRenderHint().

+ Here is the call graph for this function:

◆ snippetThatUsesMyPopulateScene()

void snippetThatUsesMyPopulateScene ( )

[1]

[1]

Definition at line 30 of file graphicsview.cpp.

References myPopulateScene(), scene, QWindow::show(), and view.

+ Here is the call graph for this function:

◆ viewScene()

void viewScene ( )

[5]

[6]

[6]

Definition at line 92 of file graphicsview.cpp.

References scene, QOpenGLWidget::setFormat(), QSurfaceFormat::setSamples(), and view.

+ Here is the call graph for this function: