Results 1 to 4 of 4

Thread: Layout without arranging or positioning

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Layout without arranging or positioning

    Hi all..
    I'm so affraid if there is any kinda layout in Qt without positioning and arranging?? You know when add a layout like QVBoxLayout,QHBoxLayout or QGridLayout, it puts objecs and arrange them and even if u try hard coding, whenever you add a object dynamicaly, it arrange all objects again!. I want a layout just like a scene! put object wherever whithout any arranging or positioning but by hardcoding.

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Layout without arranging or positioning

    just don't use a layout.

  3. The following user says thank you to FelixB for this useful post:

    alizadeh91 (29th February 2012)

  4. #3
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Layout without arranging or positioning

    So how can i add objects (e.g: buttons,labels,..) into widgets or windows(mainwindow)?

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

    Default Re: Layout without arranging or positioning

    By setting the window (or any widget) as a parent. However using buttons and labels without a layout is usually a stupid idea unless you intend to be the only user of the program you are writing.
    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.


  6. The following user says thank you to wysota for this useful post:

    alizadeh91 (29th February 2012)

Similar Threads

  1. QSplitter and re-arranging widgets within
    By poppenspeler in forum Newbie
    Replies: 1
    Last Post: 19th October 2011, 21:48
  2. arranging objects in splitter widget
    By bigbill in forum Newbie
    Replies: 2
    Last Post: 13th December 2010, 12:33
  3. Layout positioning problem.
    By Tomasz in forum Newbie
    Replies: 1
    Last Post: 14th September 2010, 09:42
  4. Replies: 2
    Last Post: 28th January 2010, 06:26
  5. Arranging the Items in Qtopia
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 10th December 2007, 08:52

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.