[QScintilla] Vertical scrollbars
Mads Ipsen
mpi at comxnet.dk
Thu Feb 26 14:41:40 GMT 2009
> On Thu, 26 Feb 2009 12:45:15 +0100 (CET), "Mads Ipsen" <mpi at comxnet.dk>
> wrote:
>>> On Thu, 26 Feb 2009 08:42:54 +0100 (CET), mpi at comxnet.dk wrote:
>>>> Hi,
>>>>
>>>> When you launch the most simple QsciScintilla window (see example
>>>> included below), the editor contains a vertical scroll bar by
>>>> default. Is that suppose to be there?
>>>>
>>>> I would expect the scroll bar to appear when you start inserting text
>>>> beyond the borders of the window that contains the QsciScintilla text
>>>> editor. This is for example the behavior you find in the QTextEdit
>>>> editor class.
>>>>
>>>> Any suggestions for fixing this?
>>>
>>> You can manage the display of the scrollbar yourself.
>>>
>>> For efficiency reasons Scintilla doesn't keep an accurate track of the
>>> total height of a document so it would be very difficult to know
>>> exactly
>>> when the scrollbar should be displayed.
>>>
>>> Phil
>>>
>>
>> Of course, I got my English wrong it my first post. What I meant (but
>> wrote the opposite) was the following:
>>
>> A horizontal scroll bar gets displayed by default. That is, a scroll bar
>> that should react to the width of the document. This I find a little
>> strange.
>
> I made the same mistake - my explanation applies to the horizontal
> scrollbar.
>
>> Can you tell me how to get rid of this? I couldn't find anything in the
>> documentation.
>
> qsci->hide(qsci->horizontalScrollBar())
>
> Phil
>
Cool - thanks a lot.
Mads
More information about the QScintilla
mailing list