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. Element QML - Item
Forum Updated to NodeBB v4.3 + New Features

Element QML - Item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 256 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.
  • E Offline
    E Offline
    Evgen2016
    wrote on last edited by
    #1

    Hello, everybody. Started learning Qml. In some examples, there is an element called Item. For some reason, examples with this element do not start in Ubuntu do not start Windows. If I'm use element Window everything works. Tell me how to run examples with element Item?

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

      Item is a non-graphical element. It won't ever show up on the screen, it is always invisible.

      (Z(:^

      1 Reply Last reply
      2
      • GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote on last edited by GrecKo
        #3

        It's a graphical element that renders nothing, but you can nest other graphical elements inside.
        As in it belongs to the visual hierarchy of the Qt Quick scene and has x, y and z properties.

        @Evgen2016 if you are using a QQmlApplicationEngine or something similar, it doesn't provide you a window. You have to create it yourself in QML.
        That's why you need a Window or an ApplicationWindow to display something on screen.

        1 Reply Last reply
        2

        • Login

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