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. Custom Layout
QtWS25 Last Chance

Custom Layout

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 828 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.
  • G Offline
    G Offline
    GatoRat
    wrote on last edited by
    #1

    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
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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
      0

      • Login

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