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 properly layout this frame?
Forum Updated to NodeBB v4.3 + New Features

How to properly layout this frame?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 173 Views 2 Watching
  • 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.
  • M Offline
    M Offline
    Mizmas
    wrote on last edited by
    #1

    I'm messing around with frames, and i want to try an implement a side menu, but why doesn't the red frame properly connect with the header and the footer when the layout margins are all set to 0?

    Ui file download

    Screenshot_1.png

    Screenshot_3.png

    Pl45m4P 1 Reply Last reply
    0
    • M Mizmas

      I'm messing around with frames, and i want to try an implement a side menu, but why doesn't the red frame properly connect with the header and the footer when the layout margins are all set to 0?

      Ui file download

      Screenshot_1.png

      Screenshot_3.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Mizmas

      Try

      body->setFrameStyle(QFrame::NoFrame);
      footer->setFrameStyle(QFrame::NoFrame);
      header->setFrameStyle(QFrame::NoFrame);
      side_menu->setFrameStyle(QFrame::NoFrame);
      

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      M 1 Reply Last reply
      2
      • Pl45m4P Pl45m4

        @Mizmas

        Try

        body->setFrameStyle(QFrame::NoFrame);
        footer->setFrameStyle(QFrame::NoFrame);
        header->setFrameStyle(QFrame::NoFrame);
        side_menu->setFrameStyle(QFrame::NoFrame);
        
        M Offline
        M Offline
        Mizmas
        wrote on last edited by
        #3

        @Pl45m4 Thanks it worked, never had this problem before. It can be set in the designer too
        Screenshot_4.png

        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