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 remove window's edge
Forum Updated to NodeBB v4.3 + New Features

How to remove window's edge

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 312 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.
  • S Offline
    S Offline
    Shahroozleon
    wrote on last edited by
    #1

    HI please tell me how to get ride of these edge on my QGraphicsView or any fram like widgets shown in this image.
    thank you so much.
    Annotation 2020-09-28 170634.jpg

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Remove layout margins (they default to 9 pixels).

      (Z(:^

      S 1 Reply Last reply
      4
      • sierdzioS sierdzio

        Remove layout margins (they default to 9 pixels).

        S Offline
        S Offline
        Shahroozleon
        wrote on last edited by Shahroozleon
        #3

        @sierdzio said in How to remove window's edge:

        layout margins

        thanks so much

        pLayout = new QVBoxLayout(this);

        pLayout->setSpacing(0);

        pLayout->setMargin(0);

        // This is redundant with setMargin,
        // which is deprecated
        pLayout->setContentsMargins(0,0,0,0);

        pLayout->addWidget(m_pLabel, 0, Qt::AlignTop);
        pLayout->addWidget(m_pButton, 0, Qt::AlignTop);

        setLayout(pLayout);

        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