Results 1 to 11 of 11

Thread: QScrollArea

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: QScrollArea

    Quote Originally Posted by wysota View Post
    How did you implement sizeHint() for your widget?
    Hi,
    I didn't implement it. Can you help me?
    Franco Amato

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QScrollArea

    Quote Originally Posted by franco.amato View Post
    I didn't implement it.
    Then how should the environment know how big your widget is or wants to be? If you told the scroll area it can resize your widget (setWidgetResizable(true)) then it does. If the sizeHint() is empty (the default) then the widget can be resized as its owner sees fit. You should implement sizeHint() and optionally also minimumSizeHint() and maybe also set proper size policy for it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: QScrollArea

    Quote Originally Posted by wysota View Post
    Then how should the environment know how big your widget is or wants to be? If you told the scroll area it can resize your widget (setWidgetResizable(true)) then it does. If the sizeHint() is empty (the default) then the widget can be resized as its owner sees fit. You should implement sizeHint() and optionally also minimumSizeHint() and maybe also set proper size policy for it.
    This is exactly what I'm unable to do until 1 month.
    I wrote lots of post about layout. Unlikely I don't understand it. I need some help from mailing list and I don't get it.
    So I would know you if you can help me with this
    Franco Amato

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QScrollArea

    What exactly you don't know how to do?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: QScrollArea

    Quote Originally Posted by wysota View Post
    What exactly you don't know how to do?
    I'm unablle to layout my widgets, giving to them the sizeHint, I'm unable to say that they can grow in 1 direction and not in another etc.
    I like QT, but I don't know why I can not learn layout concepts nor build a good gui.
    If you want I can send you an image explaining what I exactly would implement

    No problem with the back end
    Franco Amato

Similar Threads

  1. Replies: 2
    Last Post: 10th March 2008, 20:16
  2. QScrollArea
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2007, 17:20
  3. QScrollArea
    By sabeesh in forum Qt Programming
    Replies: 7
    Last Post: 2nd November 2007, 10:33
  4. QScrollArea ?
    By whitefurrows in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2007, 22:15
  5. QScrollArea
    By merry in forum Qt Programming
    Replies: 12
    Last Post: 20th June 2007, 13:05

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.