Results 1 to 6 of 6

Thread: How to move the title of the xBottm axis to its right end?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2016
    Location
    China,Wuhan
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default How to move the title of the xBottm axis to its right end?

    I'd like to move the xBottom axis's title position in Qwt plot. However, when I try to do that by subclassing QwtScaleWidget, I can not associate it with my plot.
    Since the defualt position of the title of the xBottom axis is in the middle. I'd like to move the title to the right end of the xBottom axis while keeping the text's orientation as the following picture shown.I try to subclass my class(CustomScaleWidget) from QwtScaleWidget and overload its drawTitle() fucntion, and its position moved, but I cannot find any api in qwtplot to associate my class with my qwtplot.Then my CustomScaleWidget is a standalone widget from other widget in the plot.How can I associate it with my plot?Or Is there any other method?Thank u~
    The final position is shown in the picture(beside the xbottom axis's right end,but out of the canvas).
    abc.jpgdef.jpg
    Last edited by daxiong; 3rd August 2016 at 11:18. Reason: updated contents

Similar Threads

  1. Rotating Y Axis Title
    By bigjoeystud in forum Qwt
    Replies: 3
    Last Post: 9th June 2015, 20:57
  2. How to rotate right axis title?
    By beckjoh in forum Qwt
    Replies: 2
    Last Post: 6th May 2014, 07:12
  3. Axis Title to axis label alignment
    By ROCKSTAR in forum Qwt
    Replies: 0
    Last Post: 5th February 2014, 12:47
  4. How to move items with x axis keep y axis
    By linhdong24 in forum Qt Programming
    Replies: 0
    Last Post: 5th July 2013, 02:39
  5. Set axis title on the right side
    By pospiech in forum Qwt
    Replies: 1
    Last Post: 14th March 2008, 07:26

Tags for this Thread

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.