Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [QML][Android] element occypying two cells in gridview
Forum Updated to NodeBB v4.3 + New Features

[QML][Android] element occypying two cells in gridview

Scheduled Pinned Locked Moved Mobile and Embedded
2 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.
  • K Offline
    K Offline
    kolegs
    wrote on last edited by
    #1

    Hi,

    Is it possible to create element in gridview so it take for example two cells or more? If it is possible, can it be done from C++ code? I need to add new items dynamically. Btw, I am using Qt 5.1.1 and QtQuick 2.0.

    Thanks in advance

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      this doesn't make sense for item views IMHO.

      you can use a gridlayout though for displaying widgets/elements.
      C++: "QGridLayout":http://qt-project.org/doc/qt-5.0/qtwidgets/qgridlayout.html
      QML: "grid":http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-grid.html

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

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