Results 1 to 4 of 4

Thread: QTextEdit - Scrollbar cuts border bug

  1. #1
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default QTextEdit - Scrollbar cuts border bug



    I came across this issue with a project. The border around an QTextEdit or QPlainTextEdit gets cut when a scrollbar appears.
    At first i thought it was faulty QSS, but later i googled that this was an (unresolved) bug

    https://bugreports.qt.nokia.com/browse/QTBUG-20672

    Is there any way around this bug/issue?

  2. #2
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextEdit - Scrollbar cuts border bug

    *bump*

    no work arounds?

  3. #3
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextEdit - Scrollbar cuts border bug

    Qt Code:
    1. QString styleSheetString = "#QTextEdit { border: 1px solid black; }";
    2. ui->text_edit_object->setStyleSheet(styleSheetString);
    To copy to clipboard, switch view to plain text mode 

    Just try this to set border.

  4. #4
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextEdit - Scrollbar cuts border bug

    Quote Originally Posted by Gokulnathvc View Post
    Qt Code:
    1. QString styleSheetString = "#QTextEdit { border: 1px solid black; }";
    2. ui->text_edit_object->setStyleSheet(styleSheetString);
    To copy to clipboard, switch view to plain text mode 

    Just try this to set border.
    You just stated how to put a border around a textwidget. In my image i already did this.
    The border just breaks when a scrollbar is enabled.
    Last edited by Nyte; 24th September 2014 at 14:53.

Similar Threads

  1. Replies: 10
    Last Post: 9th September 2013, 15:29
  2. Replies: 0
    Last Post: 12th July 2012, 15:52
  3. Css - problem with border in QTextEdit
    By Trok in forum Qt Programming
    Replies: 3
    Last Post: 28th March 2009, 22:53
  4. QGraphicsPixmapItem cuts off when zoomed
    By abbapatris in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2008, 15:05
  5. scrollbar on left side of qtextedit
    By piotrek in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2008, 21:07

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.