Results 1 to 2 of 2

Thread: QwtPlot width not accepting more than 32800. Is it a bug?

  1. #1
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default QwtPlot width not accepting more than 32800. Is it a bug?

    I'm using QwtPlot to draw a Histogram(eg given in TVplot). I'm placing this QwtPlot(size = 32000, 290) on QScrollArea(size = 550, 300).
    I'm plotting 10000 values. But when I'm increasing the width to any value above 32800, it's showing a black area after that. So the values are also not visible in that black area. Is this function limited to that width? What would be alternative solution?

    Qt Code:
    1. class GraphWidget : public QwtPlot
    2. {
    3. Q_OBJECT
    4. public:
    5. explicit GraphWidget(QWidget *parent = 0);
    6.  
    7. signals:
    8.  
    9. public slots:
    10.  
    11. };
    To copy to clipboard, switch view to plain text mode 
    Last edited by rawfool; 17th May 2012 at 11:33.

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

    Default Re: QwtPlot width not accepting more than 32800. Is it a bug?

    Guess the limitation is 32767 - when your underlying window system is based on shorts. But having such a plot on a scroll area doesn't sound sane - better don't do it.

    Instead add scrollbars to the plot canvas like in the realtime example.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    rawfool (18th May 2012)

Similar Threads

  1. QListView not accepting external drops
    By battersea in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2010, 19:46
  2. Replies: 11
    Last Post: 11th July 2010, 21:44
  3. TextEdit in QDialog not accepting data
    By nbkhwjm in forum Qt Programming
    Replies: 3
    Last Post: 2nd October 2008, 03:53
  4. widgets not accepting hoverevents ?
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 10th October 2007, 13:14
  5. QListView trouble accepting drops
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 6th September 2007, 19:49

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.