Results 1 to 3 of 3

Thread: Fit to width in QScrollArea unstable

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Location
    Walchwil
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Red face Fit to width in QScrollArea unstable

    I have a nasty problem with QScrollArea.

    I draw a document where the width / height ratio is constant. The document has a zoom factor.

    I use in widget() the function minimumSizeHint() which give back conforming of the document zoom factor and the parentWidget()->size() the new document size. Because of the fit to width the document size is the same than the parent widget size.

    Ok until now all seems ok!

    But, if the widget size is too big the document will switch on the vertical scrollbar. But the new widget size (with the vertical scroller) could draw a smaller document which one is enough small to fit in the widget, now the vertical scroll will switch off ... and so on ...

    Any one has an idea how to do it ?

    Bilbon.
    Last edited by Bilbon; 11th October 2006 at 13:13.

Similar Threads

  1. Replies: 2
    Last Post: 8th October 2006, 20:14
  2. Replies: 7
    Last Post: 20th September 2006, 14:45
  3. is there any signal for QScrollArea?
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2006, 07:12
  4. QScrollArea problem positioning a QWidget inside
    By Spectator in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2006, 22:59
  5. How to obtain the width of a QTableWidget?
    By Giel Peters in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 22:34

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.