Results 1 to 4 of 4

Thread: qwtscalewidget: setting scale to the widget..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Posts
    13
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qwtscalewidget: setting scale to the widget..

    Quote Originally Posted by Uwe View Post
    A QwtScaleDiv contains the upper/lower bounds and the positions of the ticks of a scale. You can define an individual one, or calculate a regular scale using a QwtScaleEngine.

    A QwtScaleDraw is responsible for drawing the scale. You can modify the tick labels and tick lengths here.

    In Qt4 QwtValueList is simply a QList<double> ( look into qwt_valuelist.h ). The only intention behind this declaration is to hide Qt3/Qt4 incompatibilities.

    Uwe
    Hi all,

    I solved the problem by using QwtScaleEngine. I created a linearscaleengine object and set the scales with divideScale method. this returns a QScaleDiv object. Then i used the QwtScaleDiv::setScaleDiv method and it is done.

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

    maxpyne (18th July 2013)

Similar Threads

  1. setting widget as modal, disables button
    By munna in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2006, 09:49
  2. My own scale widget in Qwt
    By igrms in forum Qwt
    Replies: 7
    Last Post: 15th June 2006, 21:18

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.