Results 1 to 3 of 3

Thread: QwtPolar App - Porting on Linux.

  1. #1
    Join Date
    Jan 2018
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QwtPolar App - Porting on Linux.

    Hello,
    I am using:
    1) QT 5.8
    2) QWT - 6.1.2
    3) qwtpolar- 1.1.1

    On Windows I have no ploblems.
    On Fedora 25 when the data is updated randomly colored lines appear in the title area and the graph is replicated n-times.

    Qt Code:
    1. curve->setData(new PolarData(xData.data(), yData.data(), yData.size()));
    2. replot();
    To copy to clipboard, switch view to plain text mode 

    I attach the figure with the right graph and the figure with the anomalies described above.
    rightPolar.jpgwrongPolar.jpg

    Can you give me some suggestions?

    Thanks in advance!
    Best Regards!

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

    Default Re: QwtPolar App - Porting on Linux.

    Hm, that looks like the background of the canvas is not updated and you see some random data ( often from a previous image ).
    But from the code you have posted it is hard to say more.

    Something you could try is to disable the backing store of the plot canvas ( plot->canvas()->setAttribute( QwtPolarCanvas::BackingStore ). In case of using stylesheets also try to disable them.
    Then the canvas runs in its most simple mode and we would know if the problem is related to its optimizations.

    If you are able to run your application with Qt4 it might also be worth to check the X11 paint engine ( export QT_GRAPHICSSYSTEM=native ).

    Uwe

  3. #3
    Join Date
    Jan 2018
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Red face Re: QwtPolar App - Porting on Linux.

    Uwe,
    Thank you very much!

    I have solved disabling the backing store of the plot canvas ( plot->canvas()->setPaintAttribute(QwtPlotCanvas::BackingStore, true);

    Best Regards!

Similar Threads

  1. Replies: 2
    Last Post: 20th February 2013, 19:52
  2. Installing qwtpolar 1.0 on Linux
    By ufechner in forum Qwt
    Replies: 7
    Last Post: 11th December 2011, 10:55
  3. Porting Qt application from linux to Windows
    By ankit17.ag in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2009, 22:18
  4. Linux to Windows Porting
    By qtprogrammer12345 in forum Qt Tools
    Replies: 1
    Last Post: 23rd May 2008, 08:28
  5. Porting Qt3 linux app to windows qt4
    By Philip_Anselmo in forum Qt Programming
    Replies: 7
    Last Post: 15th May 2006, 19:44

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.