Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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) )

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