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. GridLayout example with error. Why?

GridLayout example with error. Why?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 212 Views
  • 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello!
    I am trying to reproduce this example https://evileg.com/en/post/187/ but code from this example finished with error

    qrc:/main.qml:65:5: QML Rectangle: Layout: column (3) should be less than the number of columns (3)
    QGridLayoutEngine::addItem: Cell (2, 2) already taken
    QGridLayoutEngine::addItem: Cell (3, 2) already taken
    

    And "green" block isn't drawing correctly.
    Why is that? What am I missing?

    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