Hi!

I have a problem with removing the margins of my main widget.

For removing the margins, I try to use qt style sheets and have created this:

Qt Code:
  1.  
  2. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
  3. stop: 0 #050505, stop: 1 #202020);
  4.  
  5. selection-color: black;
  6. selection-background-color: silver;
  7. color: white;
  8. margin: 0px;
  9.  
  10. }
To copy to clipboard, switch view to plain text mode 

Then, I create a Widget and want to show it with any margin. So i create a Button and a filled Rectangle, which should be on the top right and should fill complete the right side of my window. The problem is, that I have a black border, that i can't remove.

Have anyone an idea, how I can complete remove the margin?