Results 1 to 3 of 3

Thread: simple question

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default simple question

    Hi I've a qlabel; i'd like put onto it a lcd, a check box and a dial; how dispose them?
    i'd like this; how do I use QBOXLayout ?
    _________
    |check|
    | dial |lcd |
    ------------
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: simple question

    I would use a QGridLayout, or in Qt 3, a QGridWidget.

  3. #3
    Join Date
    May 2006
    Posts
    28
    Thanks
    8
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: simple question

    Using the QGridLayout,

    the check would take up 2 columns and the
    dial and lcd take 1 column each so:

    gridLayout->addwidget( widget, row, 0 , column start, number of columns)

    gridLayout->addwidget( check, 0, 0, 1, 2);
    gridLayout->addwidget( dial , 1, 0, 1, 1);
    gridLayout->addwidget( lcd , 1, 0, 2, 1);

    something like that.

Similar Threads

  1. QTextEdit simple question
    By Marcopolo in forum Qt Tools
    Replies: 4
    Last Post: 11th October 2007, 00:01
  2. Simple Question on Variable initialization
    By Naveen in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2006, 11:01
  3. a simple question .how to delete a treewidgetitem
    By Alina in forum Qt Programming
    Replies: 6
    Last Post: 20th February 2006, 10:18
  4. simple question on Class-Members
    By mickey in forum General Programming
    Replies: 7
    Last Post: 4th February 2006, 22:37
  5. QTextEdit Qt4: simple question
    By TheKedge in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2006, 12:03

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.