Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    GridLayout->addwidget(someotherframe) Gives SegFault

    General and Desktop
    1
    2
    3000
    Loading More Posts
    • 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
      webmaster.skelton last edited by

      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 Reply Quote 0
      • W
        webmaster.skelton last edited by

        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 Reply Quote 0
        • First post
          Last post