GridLayout->addwidget(someotherframe) Gives SegFault
General and Desktop
2
Posts
1
Posters
3.3k
Views
1
Watching
-
wrote on 15 Nov 2010, 16:43 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); -
wrote on 15 Nov 2010, 17:00 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/2