Results 1 to 2 of 2

Thread: scrollbar on left side of qtextedit

  1. #1
    Join Date
    Oct 2006
    Location
    Poznan, Poland
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Question scrollbar on left side of qtextedit

    Hi,

    I would like to display a QScrollBar of left side of QTextEdit.
    (A scrollbar is displayaed outside the editor.)
    I create a new QScrollbar, and next I' using in editor a function setVerticalScrollBar.
    But this works not properly. In right margin is painted a gray area for not visible an old scrollbar, but the new one is not handled.

    Where is problem?

    piotr

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: scrollbar on left side of qtextedit

    I'd try hiding the original scroll bar, laying the custom scroll bar next to the text edit with help of layouts and establishing required signal-slot connections between these two scrollbars to make them synced.
    J-P Nurmi

Similar Threads

  1. Keeping the left side of a splitter from resizing
    By MrGarbage in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2007, 19:50

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.