Results 1 to 2 of 2

Thread: QSplitter only resize from user input?

  1. #1
    Join Date
    Oct 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QSplitter only resize from user input?

    I'd like to have a horizontal QSplitter with two widgets. When the window is resized, only the right-hand widget should expand. Meaning I want the handle for the QSplitter to remain a fixed horizontal distance from the left side of the window. But, the handle still needs to be draggable by the user, and it should just stay where its been left. Does anyone know how to achieve this?
    Last edited by winston2020; 30th January 2009 at 02:06.

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

    Default Re: QSplitter only resize from user input?

    Maybe QSplitter::setStretchFactor() will help you.
    Apart from that: you could interecpt the QResizeEvent and adjust the splitter there to your liking. AFAICR there were posts (quite a while ago) to that question in either this forum, qtforum.org or the Qt mailing list.

    HTH

Similar Threads

  1. Logging Qt User Actions
    By Frank J. Lhota in forum Qt Programming
    Replies: 14
    Last Post: 30th May 2014, 22:36
  2. Replies: 3
    Last Post: 3rd September 2008, 17:41
  3. Discard user input events in QEventLoop.
    By Ben.Hines in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 21:49

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.