Results 1 to 5 of 5

Thread: Layout trouble

  1. #1
    Join Date
    Sep 2008
    Posts
    24
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Layout trouble

    Hey,

    Just starting out with QT designer and it's all going well so far (mostly). Developed a simple application consisiting of a few spinboxes and sliders connected togther, all went well... However when I put a layout on it, the slider isn't responsive nor is the spinbox to mouse events (you can type a value in the spinboxes though). Am I missing something here? Why is this happening?

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Layout trouble

    Could you attach the .ui file?
    J-P Nurmi

  3. #3
    Join Date
    Sep 2008
    Posts
    24
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Layout trouble

    Hey jpn,

    It's attached. At the moment, there's only one (vertical) layout in affect encompassing all the items, and none of them are accessible. Thanks
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Layout trouble

    Your sliders and spin boxes are not in the layout. The layout is a "floating layout" and your widgets are behind it. Delete the layout, deselect all children, open up a context menu over the background of the form, and select a grid layout. That's probably what you meant.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    td (23rd September 2008)

  6. #5
    Join Date
    Sep 2008
    Posts
    24
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Layout trouble

    Thanks very much! Works fine!

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. Qt layout memory issue
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th August 2007, 17:11
  3. Resizing problems when applying a layout
    By JimBrown in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 22:54
  4. "dynamic" layout
    By hulk in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2006, 07:16
  5. QT4 layout of complex dialog is very slow
    By cboles in forum Qt Programming
    Replies: 15
    Last Post: 28th April 2006, 19:57

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.