Hi, everyone,
I want to implement a custom QGraphicsLayout that works in the following manner.The item added to the custom layout can be position absolutely by call setpos() function. I don't want to use QGraphicsAnchorLayout, QGraphicsGridLayout, and QGraphicsLinearLayout, because when the item was added to the common layout, setpos() function not work.
Or Is there method after the item was added to the common layout , i still can move the item's anywhere within the parent coordinate?
...
QGraphicsLinearLayout *layout = new QGraphicsLinearLayout;
layout->setContentsMargins(25,25,25,25);
layout->setMinimumSize(603,368);
layout->addItem(proxyForName["helpBtn"]);
proxyForName["helpBtn"]->setPos(100,100); -> not work
setLayout(layout);
...
Bookmarks