Results 1 to 1 of 1

Thread: QwtPlotLegendItem and content being cut

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QwtPlotLegendItem and content being cut

    Hello!

    I'm using some QwtPlotLegendItem as legends for some of my plot and what is happening is that, in some of them (where the legend string is a little long), part of the content is being cut. I tried to change all the configuration parameters without success (it doesn't matter the margin or spacing size, the content continues to be cut). It would seem its a failure in the methods that calculate the required space for drawing the legend.


    Any tips on how to solve this?


    Thanks,

    Momergil


    Obs.: I can't put a screen shot because the problem only arises when I run the software in a embedded linux device; when I rut it in the desktop, the interface doesn't appear correctly and, in that, the problem doesn't appear.

    ---
    Obs.: I did some studies by putting a longer string where the previous was cut and I found out that this time not only the string was not cut, but a long empty space was being placed after (at the right side) of it. Then I returned back to the original string and the problem returned. Finally, I added a white space after the string and now it is appearing correctly. Nevertheless, its obvious that this is a wrong "work around" and I'ld still like to know correct this problem properly.
    Last edited by Momergil; 27th August 2014 at 22:57.
    May the Lord be with you. Always.

Similar Threads

  1. A suggestion about QwtPlotLegendItem
    By Nicho in forum Qwt
    Replies: 4
    Last Post: 7th April 2015, 13:06
  2. Changing the brush in QwtPlotLegendItem
    By Momergil in forum Qwt
    Replies: 1
    Last Post: 16th July 2014, 08:43
  3. QwtPlotLegendItem with bar chart
    By Momergil in forum Qwt
    Replies: 0
    Last Post: 18th June 2014, 21:07
  4. Replies: 2
    Last Post: 13th September 2013, 13:47
  5. QwtPlotLegendItem and QwtLegendItem
    By jesse_mark in forum Qwt
    Replies: 3
    Last Post: 14th November 2012, 08:10

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.