Results 1 to 2 of 2

Thread: Questions for "Friedberg" sample

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 879 Times in 827 Posts

    Default Re: Questions for "Friedberg" sample

    Quote Originally Posted by TorAn View Post
    I did not find the way to provide labels for MinorTicks and MediumTicks.
    Because there is none.

    Question #2:
    Something on my TODO list is to add the functionality to display labels in the middle between 2 major ticks. This is a typical use case for date time intervals.

    The friedberg example shows a hack, that sets the length of the major ticks to 0 and enlarges the medium ticks to fake being major ticks. But this works for scales only, where the ticks are set manually from the application - in case of zooming in/out the ticks are calculated from the scale engine.

    So the friedberg example is probably not the best code to learn about scales in Qwt.

    Uwe

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

    TorAn (1st May 2011)

Similar Threads

  1. Replies: 3
    Last Post: 15th February 2010, 17:27
  2. questions about "Custom item roles"
    By calmspeaker in forum Qt Programming
    Replies: 5
    Last Post: 9th September 2008, 20:54
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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
  •  
Qt is a trademark of The Qt Company.