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. Debug error for in qgridlayoutengine.cpp
Forum Updated to NodeBB v4.3 + New Features

Debug error for in qgridlayoutengine.cpp

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlgridlayout
2 Posts 1 Posters 453 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.
  • A Offline
    A Offline
    adamlaird
    wrote on 26 Feb 2020, 14:13 last edited by adamlaird
    #1

    Hi all,

    I'm new to using qml and qt, and have just come across an error that is causing "the program has unexpectedly finished". I ran the debug and came across this error:
    "qgridlayoutengine.cpp:141:23: error: unknown type name 'QGridLayoutBox'".

    which is in the "void QGridLayoutRowData::distributeMultiCells" function of the cpp file.

    I have looked through my qml code, which does include a grid layout, but I cannot see any errors. I have also deleted my most recent changes (to when it was working correctly), but the same error keeps appearing.

    I don't have any experience using a debugger, can anyone lead me in the right direction for where to look in my code for an error? Thanks in advance.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adamlaird
      wrote on 26 Feb 2020, 22:30 last edited by
      #2

      I fixed it - so this is for anyone else having a similar issue. I'm not sure why this happened but in a RowLayout, I had a button that used Layout.prefferedWidth + Layout.prefferedHeight. relative to its parent - and this caused the error. Deleting the lines worked, but when I was checking with just 1 of them, I got a 'binding loop' error for the prefferedWidth - I'm guessing multiple of these caused it to crash.

      1 Reply Last reply
      0

      2/2

      26 Feb 2020, 22:30

      • Login

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