Results 1 to 12 of 12

Thread: Help needed in adding QWidget and other objects to a QHBoxLayout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Help needed in adding QWidget and other objects to a QHBoxLayout

    Quote Originally Posted by qtUser500 View Post
    I am using Qt 3.3.5
    Ouch Can you consider upgrading to Qt 4.4.3?

    I can't see QWidget lsited under 'Containers'in my QtDesigner, hence I am creating one at runtime.
    What do you need QWidget for? In your case I would recommend using QSplitter and this one is available in Designer from the layout toolbar. If you use it, you'll be able to point and click everything in Designer. Without the splitter you can do that too - I'm not sure what do you need the pure QWidget for. For the "document view" insert some widget like QFrame and promote it you your class by right clicking it and choosing "Promote to".

    While using QHBoxLayout, to view the toolbars I need to put spacing = 25, if not the toolbars are covered by the mainWidget
    Either you have done something wrong or... no, there is no "or"... this shouldn't happen by itself.

    Here is something I created quickly in Designer, maybe it will be helpful for you. It's probably not perfect, I haven't been using Qt3 Designer for over two years
    Attached Files Attached Files
    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.


Similar Threads

  1. Replies: 1
    Last Post: 8th February 2009, 11:37
  2. QHBoxlayout Size problem
    By Spitz in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2008, 21:09
  3. Drawing on QWidget - strech & resize
    By kemp in forum Qt Programming
    Replies: 5
    Last Post: 22nd January 2007, 14:39
  4. QHBoxLayout Problem
    By Seema Rao in forum Qt Programming
    Replies: 5
    Last Post: 29th April 2006, 15:51

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.