Results 1 to 3 of 3

Thread: Qwt and Stacking Widgets

  1. #1
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Qwt and Stacking Widgets

    Hi all,

    I've created a program supporting five stacked widgets on a small LCD (240x320). All the widgets share the control buttons and icon areas above and below the stacked widget graphics view.
    I was able to build and deploy the cpuplot example for my target device (Linux/ARM).
    I've migrated the cpuplot example as a widget to my program and am having problems with the plot screen.
    I can see the legend, the plot, the background and the curves; however, the title and both axes (title and scale) are not visible.
    It appears by the size of the margins that the plot is aware of them, in fact the plot has the momentary jump described in the example even though the text or scale markings are not visible.

    Any suggestions.

  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: Qwt and Stacking Widgets

    Guess the size hint of your plot widget needs more, than 240x320 and this is what your layout does with it.

    Uwe

  3. #3
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qwt and Stacking Widgets

    Thanks Uwe.
    The SizeHint didn't make sense to me because it worked fine on the same LCD in examples / stand alone mode.
    It was actually a conflict between the Plot canvas and the GraphicsView defined in the same space. Removed the GraphicsView and all is well.

Similar Threads

  1. Replies: 0
    Last Post: 30th April 2012, 15:17
  2. Replies: 2
    Last Post: 30th March 2011, 20:20
  3. Replies: 5
    Last Post: 18th April 2010, 23:31
  4. Window stacking order
    By mcb in forum Qt Programming
    Replies: 1
    Last Post: 28th October 2009, 21:21
  5. window stacking order
    By nupul in forum Newbie
    Replies: 4
    Last Post: 10th April 2006, 10:16

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.