Results 1 to 3 of 3

Thread: How to remove QwtPlot grey axes background and shadow?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to remove QwtPlot grey axes background and shadow?

    I am using QwtPlot to plot a load of polygons, and I want the chart to look just like an image, rather than a chart. I have recently worked out how to remove the grey border behind the axes (A in attachment), and here is the code:

    Qt Code:
    1. //set up QwtPlot
    2. QwtPlot *plot = new QwtPlot;
    3. //this code here changes the axis background from grey to white
    4. QPalette pal = plot->palette();
    5. pal.setColor(QPalette::Window, Qt::white);
    6. plot->setPalette(pal);
    To copy to clipboard, switch view to plain text mode 

    However, I am trying to remove the shadow lines on the top and left of my QwtPlot (B in attachment). Does anyone know how to remove these?
    Attached Images Attached Images

Similar Threads

  1. Grey out background windows while editing a dialog.
    By Yevgen in forum Qt Programming
    Replies: 5
    Last Post: 4th March 2014, 09:43
  2. size of QWTplot without axes.
    By Gora in forum Qwt
    Replies: 3
    Last Post: 29th May 2013, 10:09
  3. Replies: 2
    Last Post: 20th July 2012, 13:51
  4. Double Buffering on QGLWidget - Background always grey
    By StarShaper in forum Qt Programming
    Replies: 0
    Last Post: 31st March 2012, 16:35
  5. how to remove shadow of QMenu?
    By lonewsj in forum Qt Programming
    Replies: 5
    Last Post: 2nd April 2011, 08:40

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.