Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. View Vs Scene
Qt 6.11 is out! See what's new in the release blog

View Vs Scene

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    What is the difference between view and scene in Qt? Can you provide an example to differentiate both?

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You mean difference between qmlscene application and QQuickView class?

      (Z(:^

      1 Reply Last reply
      0
      • Swati777999S Offline
        Swati777999S Offline
        Swati777999
        wrote on last edited by
        #3

        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?

        “ In order to be irreplaceable, one must always be different” – Coco Chanel

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          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 graphics
          • QQuickView 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.

          (Z(:^

          1 Reply Last reply
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved