stuck in getting proper coordinates for qt chartview legend
-
Hello,
Im a beginner to qt. I have a graphicsview widget and have added multiple chartviews to the corresponding scene. i wanted to to detach the legend of each chart and when i do that the width of the detached legend seems reduced and a part of legend label seems to have hidden.. do i have to do some coordinate conversions her and set legend geometry explicitly ? if so please help what coordinate conversions needs to be done ?
Thanks -
how i am adding multiple chartviews to scene:
QGraphicsGridLayout *layout = new QGraphicsGridLayout;
layout->addItem(add chartview to scene and obtain qgraphicswidget, row, column);
QGraphicsWidget *form = new QGraphicsWidget;
form->setLayout(layout);
scene->addItem(form);