Results 1 to 8 of 8

Thread: QWidget positioning problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    10

    Default Re: QWidget positioning problem

    Thanks for ideas, but a have to say a few words.

    To SABROG: Open an explorer in windows XP. Take a look on the left panel. You will see drop down panels such as: System Tasks, Other Places, Details, and may be others. I need the same behaviour. It should be an animated drop down panel with widgets.
    But i forgot to mention that it should be resizable. I have found one implementation but it uses grabWidget() to save the content of main form to a picture. It shows that picture, than hides form, and animates the picture instead of controls itself. It has some artifacts, because when we resize main form after collapsing it (the picture was stored with original width) and try to expand it, the picture scales and it does not looks good.
    You can see it here: http://qt-apps.org/content/show.php/...?content=79286
    I believe it was not so good implementation

    To aamer4yu: May be QTreeView can help me, but can it be smooth animated while closing/opening? QToolBox also can not be used, as it has no animation i need. It has a very different behaviour.

    To MrDeath: It was a very good idea. I thought about custom layout, but i try to find more simple way for a while.
    I don't want manually positioning of every widget in my form. I want to place all of them into a frame with layout, and than somehow fix them on it. And animate it.

  2. #2
    Join Date
    Jun 2009
    Posts
    10

    Default Re: QWidget positioning problem

    Does anyone have an idea?

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: QWidget positioning problem

    Did you check the link I gave in previous post ? (Designing Delegates)
    You can easily modify the header item to draw arrows or anything u like...play with that example.

  4. #4
    Join Date
    Jun 2009
    Posts
    10

    Default Re: QWidget positioning problem

    ok, thanks! I'll try.

Similar Threads

  1. Dynamic updates of a QWidget in a QScrollArea
    By plamkata in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2008, 23:45
  2. Error in put one QWidget in another QWidget
    By xjtu in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2008, 16:05
  3. Problem with Parent QWidget and Buttons not working
    By VireX in forum Qt Programming
    Replies: 7
    Last Post: 11th May 2007, 22:24
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. QScrollArea problem positioning a QWidget inside
    By Spectator in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2006, 22:59

Tags for this Thread

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.