Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Custom Layout

    General and Desktop
    2
    2
    693
    Loading More Posts
    • 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.
    • G
      GatoRat last edited by

      The main window of my app has three possible views. I'll call them A, B and C. Usually only one of these views is being used and filling the client area at any given time. However, the user has the option of splitting the views. Fortunately, we have set rules that A will always split to the right and C will always split below B and the views will only be shown/hidden, not created/destroyed. I started working on a custom layout derived from QLayout, but now wonder if I'm just making more work for myself and if I should just do this all manually and forgo QLayout. Or am I missing the boat here entirely?

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        Hi,

        I doubt that a custom layout is needed.

        To use "split" mode, transfer the views to either a QGridLayout, or a layout-within-a-layout (Add B & C to a QVBoxLayout, then add this layout & A into a QHBoxLayout)

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 0
        • First post
          Last post