Results 1 to 16 of 16

Thread: Need to resize the window to make QwtPlotSpectrogram shows correctly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jun 2019
    Location
    France, Pau
    Posts
    60
    Thanks
    32
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Need to resize the window to make QwtPlotSpectrogram shows correctly

    The problem is about a missing layout update - not replotting. And on my box the workaround solved it in the demo code ( note, that updateLayout needs to be alled after setAxisScale and before replot ). So maybe you are talking about a different situation/problem now ?
    I called updateLayout just before replot, so after any eventual setAxisScale call. I even copied/pasted your code with the workaround in the demo and nothing changed !

    My Qt version is 5.12.3 by the way and actually working under Ubuntu 18.04 (but will also run the program on Centos 7 later).

    Like for the yRight axis's color bar issue (see the comment above), reassigning a new color map to the spectrogram object fixed my issue ! It's not pretty but it doesn't matter

    Qt Code:
    1. m_spectrogram.setColorMap(new LinearColorMapRGB());
    To copy to clipboard, switch view to plain text mode 

    Invalidating the cache worked perfectly ! Awesome, thank you !
    Last edited by embeddedmz; 21st June 2019 at 11:53.

Similar Threads

  1. How to make a user not resize a window.
    By marcos.miranda in forum Newbie
    Replies: 2
    Last Post: 20th September 2017, 21:23
  2. Replies: 0
    Last Post: 8th June 2012, 13:27
  3. Replies: 0
    Last Post: 7th June 2012, 21:58
  4. Widget does not resize correctly
    By Demandred in forum Newbie
    Replies: 4
    Last Post: 16th April 2010, 12:06
  5. Program that just shows a window
    By claudio-cit in forum Newbie
    Replies: 2
    Last Post: 5th July 2008, 09:55

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.