Results 1 to 2 of 2

Thread: Problem with adding QGraphicsItem to QChartView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem with adding QGraphicsItem to QChartView

    QChartView inherits from QGraphicsView and therefore you can access the QGraphicsScene instance using QGraphicsView::scene(). Once you have the scene pointer, you add your own graphics items to the scene in the correct locations.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    Mohsin (24th May 2021)

Similar Threads

  1. Problem with saving QChartView as vector image file
    By Mohsin in forum Qt Programming
    Replies: 1
    Last Post: 14th May 2021, 17:04
  2. Problem with implementing custom QChartView
    By Mohsin in forum Qt Programming
    Replies: 3
    Last Post: 14th May 2021, 16:50
  3. adding new QChart in a QChartView
    By zemlemer in forum Newbie
    Replies: 3
    Last Post: 7th September 2019, 16:02
  4. Problem getting QChartView to display
    By derrickbj in forum Qt Programming
    Replies: 5
    Last Post: 20th September 2016, 16:55
  5. adding QGraphicsItem to multiple scenes
    By forrestfsu in forum Qt Programming
    Replies: 7
    Last Post: 6th November 2006, 14:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.