Results 1 to 3 of 3

Thread: Custom Scroll Widget Sizing Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Custom Scroll Widget Sizing Problem

    i) not related to your problem, but: a global returnMainLayout() is a bad idea: what if you want two instances of that widget?

    ii) you should not set the maximumSize of your widget.
    now, the available space is quite limited and the layout tries to fit all the widgets into that (too small) space.

  2. #2
    Join Date
    Apr 2008
    Location
    Karaj,Iran
    Posts
    43
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom Scroll Widget Sizing Problem

    Quote Originally Posted by caduel View Post
    i) not related to your problem, but: a global returnMainLayout() is a bad idea: what if you want two instances of that widget?

    ii) you should not set the maximumSize of your widget.
    now, the available space is quite limited and the layout tries to fit all the widgets into that (too small) space.
    thanks for reply,since other objects like buttons or textbox and .. can be added to a collection, I want to have a scrolling widget so it won't take alot of space

    any ideas how to approach that?

Similar Threads

  1. Problem with custom widget
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 15th March 2006, 11:55
  2. Replies: 16
    Last Post: 7th March 2006, 15:57
  3. Replies: 4
    Last Post: 1st March 2006, 23:11
  4. Problem with QScrollArea updating from 4.0.1 to 4.1.0
    By SkripT in forum Qt Programming
    Replies: 8
    Last Post: 28th January 2006, 22:35
  5. QRubberBand painting in the scroll area widget
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 17th January 2006, 16:48

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.