Results 1 to 2 of 2

Thread: problem with alignment

  1. #1
    Join Date
    Feb 2006
    Posts
    42
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question problem with alignment

    how to create/align two buttons attached, like below

    |----------------|--------------------|
    | one | two |
    |----------------|--------------------|


    Thanks in advance,

    Seema Rao

  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: problem with alignment

    Did you even try reading the docs or the links posted in your previous thread??

    Qt Code:
    1. QHBoxLayout* layout = new QHBoxLayout;
    2. layout->addWidget(button1);
    3. layout->addWidget(button2);
    4. layout->addStretch();
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

Similar Threads

  1. Replies: 2
    Last Post: 30th December 2008, 21:35
  2. Q3Table text alignment problem
    By batileon in forum Qt Programming
    Replies: 4
    Last Post: 28th August 2008, 18:04
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  5. child label alignment problem
    By ht1 in forum Qt Programming
    Replies: 9
    Last Post: 21st November 2007, 20:50

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.