Results 1 to 19 of 19

Thread: How I must do this

  1. #1
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How I must do this

    Hello,
    I have a question how I must do this :
    example



    kjiu

  2. #2
    Join Date
    Dec 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: How I must do this

    Do what? What do you want to do with the letters?

  3. #3
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    no.. I want to be the nr. 1,2,3,5 ->.... The lines.. were I am writing

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: How I must do this

    where do u wanna write them..explain clearly so we can help u..

  5. #5
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: How I must do this

    May be you can have a look at Qt Creator code.

  6. #6
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: How I must do this

    So basically you want a text editor with line numbers right?

    This topic has already been covered several times, please use the search feature of this forum.

    You can find such a feature in QCodeEdit and QScintilla or any editor widget used by IDEs out there. Edyuk uses QCE, MonkeyStudio uses QScintilla and the others (QtCreator, QDevelop, HaiQ) have it somewhere it their code which you can study and copy as it is GPL'd
    Current Qt projects : QCodeEdit, RotiDeCode

  7. #7
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    look:

    we have a text editor and when we write :
    - I write rr :



    then when a do "enter" there is :


  8. #8
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: How I must do this

    so you're after a text editor that turns 'r' into 'a'? I must be missing something because apart from that I cannot see what's so special about your screenshots...
    Last edited by fullmetalcoder; 19th February 2009 at 21:51. Reason: spelling error
    Current Qt projects : QCodeEdit, RotiDeCode

  9. #9
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    no no no !!..
    sorry that was my error...

    1.rr
    2.

    this is what I what to do

  10. #10
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: How I must do this

    Quote Originally Posted by fullmetalcoder View Post
    so you're about a text editor that turns 'r' into 'a'?
    Sorry I must:

    @kjiu: have a look in the sources fullmetalcoder has pointed out for you! If you have problems to understand the code, ask.

  11. #11
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    look :
    http://www.qt-apps.org/content/previ...name=QCodeEdit

    like this ( line 1660 and next is 1670 )

    do you understand ?

  12. #12
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: How I must do this

    I'm afraid I still don't understand what you want...

    If you want to draw line numbers in a text editor then I have already answered your question : use forum search with this phrase for instance "text editor line numbers" and you'll find several threads on the topic. Alternatively, as I have already suggested you can use existing libraries that provide such a widget out of the box or you can read the code of said libraries (or the IDEs I mentionned) and find out how they achieve that.

    If you want something else then I just did not understand your previous posts (and I suspect I am not alone) so it would be good to reformulate your question so that we may understand it and thus be able to answer it.
    Current Qt projects : QCodeEdit, RotiDeCode

  13. #13
    Join Date
    Mar 2006
    Posts
    140
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 4 Times in 3 Posts

    Default Re: How I must do this

    I'm still having a really hard time trying to understand what the question is.
    A detailed description in words detailing what you're trying to achieve would be really awesome. If this never happens then no one's going to be able to help you with your problem.

  14. #14
    Join Date
    Mar 2006
    Posts
    140
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 4 Times in 3 Posts

    Default Re: How I must do this

    Actually this reminds me of a Danger Mouse DVD where the narrator was rambling on between episodes talking about random stuff and how he was going to show us how to make on of "these". Mind you only the DM logo was on screen leaving an aire of mystery about the whole thing.

  15. #15
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    yes I want text editor line numbers..

  16. #16
    Join Date
    Feb 2009
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I must do this

    I have the notepad and can you do this for me.. because is very important . please
    Attached Files Attached Files

  17. #17
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: How I must do this

    Quote Originally Posted by kjiu View Post
    because is very important
    My time too! So you won't find here anyone who will do your work for you. You simply want line numbers in your editor, so have a look into the sources of the previous mentioned applications.
    If you have written the code of your attached file by yourself, you should be able to understand how to get line numbers....

  18. #18
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    30
    Thanked 13 Times in 12 Posts

    Default Re: How I must do this

    kjiu, please read this:


    How to ask questions the smart way

  19. #19
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: How I must do this

    this is the funniest thread i've read in my entire life that convert "r" into "a" line deserves a "QT Centre smartest line" award..thank you guys and kuju, please mk ur problem VERY clear the very first time..ev1's time is impt!! but this was worthed

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.