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. "Ruler" style for QChart axis

"Ruler" style for QChart axis

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchartaxisqcategoryaxis
2 Posts 2 Posters 917 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.
  • P Offline
    P Offline
    Pavlya
    wrote on 18 Jul 2016, 11:45 last edited by
    #1

    Hi all.

    I have tried to use QChart from Qt 5.7 Now I need "ruler" style for my axis. See this example (now I draw it via void paintEvent(QPaintEvent *e);)
    Axis needs the same subitems between items. 100 mS is main item, +10mS .... +90mS are subitems. For QChart I tried to use QCategoryAxis. I create QCategoryAxis object for main items and it works fine. After that I added second QCategoryAxis for subitems. And faced with problem. As I understand QCategoryAxis::append(const QString &categoryLabel, qreal categoryEndValue) uses categoryLabel as a key and categoryEndValue as a value. That's why I got subitems from start scale to first main value (100mS) and do not have any subscale after 100 mS.

    Could you give advice how to resolve it?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 18 Jul 2016, 14:11 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      2/2

      18 Jul 2016, 14:11

      • Login

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