PDA

View Full Version : scrollbar on left side of qtextedit



piotrek
15th February 2008, 13:59
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

jpn
15th February 2008, 22:07
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.