Results 1 to 1 of 1

Thread: advice wanted: widget size 50 x 4,000

  1. #1
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default advice wanted: widget size 50 x 4,000

    I want to create an interactive panel like in the attached image; the two squiggly lines--one red, the other blue--represent data taken from wells.

    The range of data values is from 0 feet to 4000 feet in depth; there's a measurement taken at every foot, so there are 4,000 data values that I want to include in the image. So I've subclassed QWidget, added a paintEvent, and call it "wellPan". The widget is only 50 pixels wide, for example, and 4000 pixels high. *But* at any given time only 200 pixels in height of this widget would be visible (see "wellPan01" and "wellPan02"). In the attached image, the user has zoomed in to the well data such that he's looking at depths 350 to 650. If he wanted, he could zoom in still further, or zoom all the way out so that he could see depths 0 - 4000. He can also scroll up-and-down the image.

    Does this seem like a good way to do this? Is it wise (or not) to have a huge widget, though only part of it is shown at any time? Is it possible to zoom in/out to the widget (wellPan) as I've described? Thank you!
    Attached Images Attached Images

Similar Threads

  1. Replies: 2
    Last Post: 23rd March 2009, 17:26
  2. Fix size widget + Splitter
    By weepdoo in forum Qt Tools
    Replies: 0
    Last Post: 20th November 2008, 08:47
  3. QLayout and the size of the widget
    By jimfan in forum Qt Programming
    Replies: 2
    Last Post: 20th December 2007, 17:04
  4. Simple custom widget won't size properly
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 13:12
  5. Size of a plugin widget in designer
    By high_flyer in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2006, 13:29

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.