Results 1 to 2 of 2

Thread: Remove the Margins

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Remove the Margins

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Remove the Margins

    I don't get you. Could you attach a screen shot and/or past your relevant code?

Similar Threads

  1. QwtPlot margins
    By jmsbc in forum Qwt
    Replies: 0
    Last Post: 2nd October 2009, 18:11
  2. QToolButton margins
    By bjoernbg in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2008, 09:28
  3. QScrollArea margins
    By munna in forum Qt Programming
    Replies: 12
    Last Post: 18th September 2006, 18:56
  4. QComboBox Margins
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 19th August 2006, 11:58
  5. margins in QSimpleRichText
    By Pan Wojtas in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2006, 16:34

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.