View Vs Scene
-
What is the difference between view and scene in Qt? Can you provide an example to differentiate both?
-
You mean difference between
qmlscene
application andQQuickView
class? -
About this question, I am not specific about any module or class of Qt. I just want to know, in general, how are these terminologies, in the language of Qt, differ from each other?
-
Since I don't know what we are talking about, I can't answer with anything meaningful, sorry. Each API within Qt has it's own nomenclature, it's hard to generalize like that.
In QtWidget world, or rather in QGraphicsView, a scene is the whole "canvas" on which you draw. A view is a single, well, view of that scene - like a viewfinder peeking into a part of the scene - does not need to show everything.
In QML world, there is no such distinction. There are multiple views and scenes here:
qmlscene
is used to display QML-only content (no C++ necessary)scene graph
is the technology or framework used to draw and display QML content efficiently using hardware-accelerated graphicsQQuickView
is a C++ element used to display QML content- various view components (
GridView
,ListView
) are used to display collections of items
In Qt3D, QtQuick3D worlds - I'm sure there are scenes and views here as well, but I know nothing about those modules.
There, that's a quick overview of all views and scenes I can think of.