Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to divide Left Dock vertically ?

How to divide Left Dock vertically ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shan1986
    wrote on last edited by
    #1

    Hi,
    I want to add two dock windows to the DockLeft area. they should appear vertically. how can i do that? thank you.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Anticross
      wrote on last edited by
      #2

      You can create one dock window, which will contains multiple windows inside. And organize them inside using for example QVerticalLayout which will be the main layout of your dock window, and append any new window to this layout.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        At the QMainWindow call "addDockWidget":http://developer.qt.nokia.com/doc/qt-4.8/qmainwindow.html with the required parameters.

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shan1986
          wrote on last edited by
          #4

          Anticross, Maxim,

          Thanks for the help. I'm using Qt3. I did it like this...

          mainWin->addDockWindow( dwinTop, DockLeft, FALSE );
          .....
          mainWin->moveDockWindow( dwinBottom, DockLeft, FALSE, 1, 0 );

          thanks again........

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved