hi all: when I try to remove an item in a WHBoxLayout, I wrote this: layout->removeItem(layout->itemAt(1));and got an exception at WLayout::updateRemoveItem -> WLayout::setParentLayout -> WObject::addChild, actually the layout parameter of WLayout::setParentLayout is 0! Is this a bug?
What I really want is to change a WGridLayout's layout, for example, from a 3x3 grid to a 2x2 grid. But I found that WGridLayout::removeItem only removes the Widget in the cell but NOT the cell itself. Thus the new 2x2 grid is still 3x3 but with the 2x2 cells filled. So I try to remove the WGridLayout totally and recreate again (in a parent WHBoxLayout),that leads to the above error. How can I do that? Thanks in advance.
------------------------------------------------------------------------------
_______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
