You are not logged in.

1

Monday, January 17th 2005, 2:54pm

QTextedit : First visible line

Hi,

How to get the first visible line for QTextedit ?

Regards
Teh

kagen

Beginner

  • "kagen" is male

Posts: 28

Location: South Africa

Occupation: Developer using QT

  • Send private message

2

Monday, January 17th 2005, 3:04pm

RE: QTextedit : First visible line

Restate the problem better!
CODE
Carefully
Ordered
Device
Events

3

Monday, January 17th 2005, 3:17pm

RE: QTextedit : First visible line

Hi,

My problem is in QTextEdit
it may cantain a number of lines, I need to get the line number
for first visible line in QTextEdit after scrolling.

Let say in the QTextEdit that are 100 lines.
The first line that are visible may be is line no 56 after I
scrolldown.
What I need is to get the line number 56 and display it in
the statusBar.

Status Bar:
=============
Max Lines : 100 Top Line: 56 Current Line: 65

Hope, my explain will clear.

Regards
Teh