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
src_gui_graphicsview_qgraphicsview.cpp File Reference

(69d4ecd6ef9057cb3703178277042ff7a7411459)

Go to the source code of this file.

Functions

scene addText ("Hello, world!")
 
view show ()
 
scene addRect (QRectF(-10, -10, 20, 20))
 
view setRenderHints (QPainter::Antialiasing|QPainter::SmoothPixmapTransform)
 
view setBackgroundBrush (QImage(":/images/backgroundtile.png"))
 
view setCacheMode (QGraphicsView::CacheBackground)
 

Variables

QGraphicsScene scene
 [0]
 
QGraphicsView view
 [1]
 

Function Documentation

◆ addRect()

scene addRect ( QRectF(-10, -10, 20, 20) )

Referenced by QPainterPath::addRect(), and QGraphicsScene::addRect().

+ Here is the caller graph for this function:

◆ addText()

scene addText ( " Hello,
world!"  )

◆ setBackgroundBrush()

view setBackgroundBrush ( QImage(":/images/backgroundtile.png") )

◆ setCacheMode()

◆ setRenderHints()

◆ show()

view show ( )

Variable Documentation

◆ scene

[0]

[2]

[1]

[4]

Definition at line 5 of file src_gui_graphicsview_qgraphicsview.cpp.

◆ view

[1]

[2]

Definition at line 24 of file src_gui_graphicsview_qgraphicsview.cpp.