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. QCharts Crop to Rectangle and Use Horizontal Scroll
Qt 6.11 is out! See what's new in the release blog

QCharts Crop to Rectangle and Use Horizontal Scroll

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 314 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    ARC_DEV
    wrote on last edited by
    #1

    I am trying to implement a custom graph going off the QtCharts Callout example. I want to restrict the selection of the chart to a specific area and make it possible to scroll horizontally while still displaying the Axis Values.

    the classes i am using are below
    callout.cpp
    callout.h
    main.cpp
    view.cpp
    view.h

    here is an example of what i mean

    say i want the selection region point1 = (5,0) point2 = (15,8) and the region is a QRect(point1,point2)

    selected.png

    crop.png

    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