Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GridLayout->addwidget(someotherframe) Gives SegFault

GridLayout->addwidget(someotherframe) Gives SegFault

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.3k 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.
  • W Offline
    W Offline
    webmaster.skelton
    wrote on last edited by
    #1

    I hope someone can help me answer this... For layoutpurposes, I am trying to add a frame to a gridlayout that is attached to another frame. When i do, it generates 10 empty frames of various sizes and thows a segFault. I am creating the new frame in a different function, then adding the widget to a gridlayout which is added to a different frame. Is this allowed? Or is it something else in my code that might be causing it. Thanks.

    @FrameFactory::gridlayout->addWidget(FrameFactory::createFrame_buttonFrameTemplate(), 3, 0,1,6,Qt::AlignLeft
    | Qt::AlignBottom);

    1 Reply Last reply
    0
    • W Offline
      W Offline
      webmaster.skelton
      wrote on last edited by
      #2

      ok nm found the issue, Did notice that when you do it this way though, QT creates each widget as a separate item until the final frame is created.

      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