Results 1 to 5 of 5

Thread: custom scroll bar for QTextEdit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    23
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default custom scroll bar for QTextEdit

    Hi,

    I'd like to create some custom scroll bar for my QTextEdit. I've found good hint to hide original scroll bar and create a bit of padding inside the QTextEdit for the custom QScrollBar
    then in that area manually set QScrollBar.

    Qt Code:
    1. QScrollBar *sBar = new QScrollBar();
    2. edit->setStyleSheet("padding-right: 10");
    To copy to clipboard, switch view to plain text mode 
    but how do I set QScrollBar to the padded area ?
    Last edited by ArkKup; 19th March 2013 at 14:54.

Similar Threads

  1. Replies: 2
    Last Post: 9th July 2012, 05:26
  2. How to detect scroll on QtextEdit
    By tonnot in forum Newbie
    Replies: 1
    Last Post: 10th October 2011, 21:15
  3. hangup vertical scroll bar in qtextedit
    By mero in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2011, 18:59
  4. QTextedit scroll or paint problem
    By pavanbarot in forum Qt Programming
    Replies: 0
    Last Post: 29th December 2010, 13:22
  5. QTextEdit + auto scroll
    By jbpvr in forum Qt Programming
    Replies: 7
    Last Post: 25th March 2008, 09:30

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
  •  
Qt is a trademark of The Qt Company.