Results 1 to 8 of 8

Thread: Expanding QTextEdit

  1. #1
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Expanding QTextEdit

    I would like to create a small text processor, with functionality roughly the same as the one in Google docs. While it's easy to use QTextEdit, especially with the given examples, I find it quite hard to start adding formatting options. I tried downloading some larger examples like KWord or some example apps from trolltech website, but they are either very large and quite hard to comprehend or they aren't providing the same functionality (like LaTeX based WYSIWYG editor).

    Could you point into some direction with this? Maybe you know some good examples on how to achieve this and build some simple (like having bold, italic and underline, font size and maybe type) text processor? I would be very thankful for your help.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Expanding QTextEdit

    Have you seen the Text Edit demo?
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    gruszczy (15th February 2009)

  4. #3
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Expanding QTextEdit

    That's exactly, what I need. But I checked the examples website and still can't find there - where I can find some link to it? Maybe there are some other examples, which I could use and didn't know about.

    Thanks anyway, this should be very helpful.

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Expanding QTextEdit

    There are demos and examples. This one is a demo, not an example.
    J-P Nurmi

  6. #5
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Expanding QTextEdit

    I can't see demos link on http://doc.trolltech.com/4.4/ either. But I'm sure I'll remember this url now.

  7. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Expanding QTextEdit

    Yeah it's a bit hard to spot, but those more advanced demos are advertised in the beginning of the examples page:
    In addition to the examples and the tutorial, Qt includes a selection of demos that deliberately show off Qt's features. You might want to look at these as well.
    J-P Nurmi

  8. The following user says thank you to jpn for this useful post:

    gruszczy (15th February 2009)

  9. #7
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Expanding QTextEdit

    Indeed they are. I guess I have to start reading all introductury stuff, since there might be useful information.

    Thanks again for your help.

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

    Default Re: Expanding QTextEdit

    Dont you have Qt installed ? I bet u have..
    You can find the qtdemo.exe under bin folder....explore it, its wonderful

Similar Threads

  1. QTextEdit Performance handling large paragraphs
    By netuno in forum Qt Programming
    Replies: 14
    Last Post: 1st September 2010, 22:58
  2. Drawing on QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2009, 09:40
  3. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  4. QTextEdit, sizeHint, QWidget
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2007, 08:25
  5. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.