Results 1 to 2 of 2

Thread: Displaying line numbers in the editor

  1. #1
    Join Date
    Jun 2008
    Posts
    22

    Default Displaying line numbers in the editor

    I want to display line numbers on my editor as in the example given in the link http://doc.trolltech.com/qtjambi-4.4...odeeditor.html.

    I have implemented a tabbed interface and want the line number to appear on each tab.
    Please let me know the easiest way that the line number area could be painted and the line numbers displayed on the same, in the editor.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Displaying line numbers in the editor

    Just do it the way it's done in the example you posted.
    No easier way than that afaik.

Similar Threads

  1. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51
  2. Qwizard crashed when created in a slot
    By joshlareau in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2008, 09:16
  3. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  4. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42
  5. a Text Editor with line numbers...
    By fullmetalcoder in forum Qt Programming
    Replies: 47
    Last Post: 5th April 2006, 11:10

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.