Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Dynamically Adjusting tickCount for DateTimeAxis in QML: Is it Possible?

Dynamically Adjusting tickCount for DateTimeAxis in QML: Is it Possible?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 217 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.
  • R Offline
    R Offline
    robven
    wrote on last edited by
    #1

    In QML, is there a way to change the tickCount of a DateTimeAxis at runtime?

    1 Reply Last reply
    0
    • jeremy_kJ Online
      jeremy_kJ Online
      jeremy_k
      wrote on last edited by
      #2

      The documentation doesn't say anything suggesting that the property is read-only. Have you tried assigning to it?

      Asking a question about code? http://eel.is/iso-c++/testcase/

      R 1 Reply Last reply
      0
      • jeremy_kJ jeremy_k

        The documentation doesn't say anything suggesting that the property is read-only. Have you tried assigning to it?

        R Offline
        R Offline
        robven
        wrote on last edited by
        #3

        @jeremy_k my conclusion is that once you assign a value to tickCount either during the initial phase or if you don't assign it and DateTimeAxis uses the default, then if you try to modify it during program execution, it always keeps the value you initially assigned. It's a pity because if it could be modified at runtime, it would be possible to align the ticks with the points on the graph. As it stands, the ticks are always misaligned compared to the points.

        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