Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. stuck in getting proper coordinates for qt chartview legend
Forum Updated to NodeBB v4.3 + New Features

stuck in getting proper coordinates for qt chartview legend

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 220 Views
  • 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.
  • S Offline
    S Offline
    sachinrd
    wrote on last edited by sachinrd
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sachinrd
      wrote on last edited by
      #2

      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);

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved