Results 1 to 2 of 2

Thread: how to arrange and organize my widget, buttons n everything inside my main window?

  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default how to arrange and organize my widget, buttons n everything inside my main window?

    As I am not using QtDesigner, I need to write the required code to create checkboxes, buttons, sliders, group boxes, n everything else.
    The problem I have is that what function I need to use to locate my widgets where I want inside the main window?
    let's say I need a big label shifted to the left, two sliders below it, many buttons to the right side

    tnx

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to arrange and organize my widget, buttons n everything inside my main window

    Your post of thirty minutes ago says you are using Designer by including uic generate UI code.

    Before you write any more code you should read Layout Management and some of the dozens of examples including some specifically on layouts and the tutorials such as this one. You will save yourself a lot of typing.

Similar Threads

  1. Customizable widget over main window.
    By SeeLook in forum Qt Programming
    Replies: 5
    Last Post: 23rd June 2012, 16:24
  2. Replies: 2
    Last Post: 16th April 2012, 04:13
  3. Replies: 2
    Last Post: 3rd April 2012, 01:14
  4. Add a Frame Widget to the main window
    By kamlmish in forum Qt Programming
    Replies: 2
    Last Post: 30th November 2010, 08:51
  5. Main window with custom buttons ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2006, 06:32

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.