Results 1 to 5 of 5

Thread: veritical menu/layout separator?!?!

  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question veritical menu/layout separator?!?!

    I am using a custom menu which is like 600x600 in size. Now the point is I would like to have the menu contents displayed in 3 vertical columns....how can i do this?

    OR

    If i display the contents in a normal frameless window, using 3 vertical layouts in a horizontal layout, can I i show a separator between the columns? how?

    Thanks

    Nupul

  2. #2
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: veritical menu/layout separator?!?!

    Maybe you need a QSplitter or set an appropiate value for the margins of the horitzontal layout...
    Last edited by SkripT; 21st April 2006 at 17:57.

  3. #3
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: veritical menu/layout separator?!?!

    Quote Originally Posted by SkripT
    Maybe you need a QSplitter or set an appropiate value for the margins of the horitzontal layout...
    sorry I mean spacing when I say margins...

  4. #4
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Re: veritical menu/layout separator?!?!

    but will i get a vertical line looking as a separator?

    thanks.

    ps: I don't want to use a splitter!

  5. #5
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: veritical menu/layout separator?!?!

    Quote Originally Posted by nupul
    I am using a custom menu which is like 600x600 in size. Now the point is I would like to have the menu contents displayed in 3 vertical columns....how can i do this?
    Didn't you learn anything from Microsoft's atrocious start menu
    Actually, QMenu will not be able to do this for you. You will have to create your own custom popup widget which contains a horizontal layout with five columns. Use frame widgets, with the style set to VLine|Sunken to get the separators in columns 1 and 3.
    Last edited by Chicken Blood Machine; 22nd April 2006 at 23:04.
    Save yourself some pain. Learn C++ before learning Qt.

  6. The following user says thank you to Chicken Blood Machine for this useful post:

    nupul (25th April 2006)

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.