Results 1 to 7 of 7

Thread: Layout resizing problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Layout resizing problem

    Hi, I've got this application: Capture.jpg
    As you can see, I've got two PushButtons with black arrows. Those buttons are supposed to make the corresponding widget (either the tabWidget on the left or the normal widget on the right) take the entire size of the application window. I've tried to resize using the corresponding function but it's not working... I've also seen that showFullScreen() only works for independant windows...
    Can you please tell me why my resize is not working? Here's what I have done so far:
    Qt Code:
    1. ui.LayoutCahiers->setSizeConstraint(QLayout::SizeConstraint::SetNoConstraint); // I'm trying to destroy all constraints that may interfere with the resize function
    2. ui.Onglets->resize(200, 500); //trying to resize with random values (just to see if it works)
    To copy to clipboard, switch view to plain text mode 

    Thanks for your replies.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Layout resizing problem

    My first idea would be to use a QSplitter for the separation. It allows sections to be collapsed

    Another approach would be to hide the part that should no longer be visible.

    Cheers,
    _

Similar Threads

  1. resize problem with QHeaderView using qt4.5.3
    By drawat in forum Qt Programming
    Replies: 0
    Last Post: 4th August 2010, 08:42
  2. QGLWidget resize problem
    By Term Dickem in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2010, 14:12
  3. resize problem
    By yuvaraj.yadav in forum Qt Programming
    Replies: 3
    Last Post: 4th May 2009, 17:42
  4. QGLWidget Resize Problem
    By Sandip in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2008, 06:47
  5. Resize Problem
    By mambo in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2006, 15:41

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.