Results 1 to 2 of 2

Thread: QLineEdit padding problem with QTreeWidget

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation QLineEdit padding problem with QTreeWidget

    Hi,
    I have this stylesheet part loaded using "App.setStyleSheet( StyleSheet );" :
    Qt Code:
    1. {
    2. background-color: #201F1F;
    3. border: 1px solid #3A3939;
    4. border-radius: 2px;
    5. color: silver;
    6. padding: 2px;
    7. }
    To copy to clipboard, switch view to plain text mode 
    All works good everywhere but not with all tree widget because of "padding: 2px;".
    Image of the problem : http://zupimages.net/up/14/47/y5wz.png
    How remove this problem ?
    Thanks for the help

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QLineEdit padding problem with QTreeWidget

    Make the height tall enough to accommodate the line edit borders, padding and text. Currently it looks like the height of the item size hint is too small. If I recall correctly, the border is usually suppressed for line editors embedded as item view editors.

Similar Threads

  1. QwtText background padding
    By Maximus2 in forum Qwt
    Replies: 9
    Last Post: 6th December 2018, 07:36
  2. Qwt: curve with padding
    By alperyazir in forum Qwt
    Replies: 1
    Last Post: 11th November 2014, 10:19
  3. Replies: 0
    Last Post: 6th May 2011, 07:28
  4. Adding some padding to a button
    By scarleton in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2010, 15:18
  5. QLineEdit padding
    By bunjee in forum Qt Programming
    Replies: 0
    Last Post: 17th September 2008, 22:43

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.