Results 1 to 1 of 1

Thread: What you see text editor

  1. #1
    Join Date
    Nov 2011
    Posts
    11
    Thanks
    1
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default What you see text editor

    Hello,

    Are there any ready-available examples of this? I want a functionality akin to Photoshop text function.

    I'm thinking about subclassing QTextEdit and QGraphicsScene and placing this text object upon pressing a button. Then, when you click on this object, additional text editing tools become available - so you can set parts of text to bold, italic, modify color and not much else. And then you would be able to change the object's position - and I think that's available in QGraphicsScene by default.

    Is this a reasonable way to approach this?

    Edit:

    I want a background picture, as a QBrush, for the background of QGraphicsScene. Let's say I want to add a fancy caption to it or something like that.
    So the possible steps would be:
    (1) Press the text button. Text editing means appear on QGraphicsScene
    (*) Position the text
    (*) Edit the text, including font, size, etc.
    (2) Once it's done, an easy approach would be to 'finalize' the text and apply it to the background picture. A bit harder one would be to save the state of all the text objects (a layer of sorts) so they could be loaded and edited later.
    Last edited by Wolf900; 10th March 2012 at 12:08. Reason: added clarifications

Similar Threads

  1. Text editor questions
    By mtnbiker66 in forum Qt Programming
    Replies: 2
    Last Post: 27th January 2012, 16:21
  2. Sintegrial Text Editor
    By ii-system in forum Qt-based Software
    Replies: 0
    Last Post: 13th April 2010, 22:56
  3. Text Editor
    By viglu in forum Newbie
    Replies: 6
    Last Post: 8th March 2010, 21:54
  4. How to Add Text to Editor in QTableView
    By klahey in forum Qt Programming
    Replies: 2
    Last Post: 2nd January 2010, 15:05
  5. Text editor in another application
    By ImQti in forum Qt Programming
    Replies: 4
    Last Post: 10th December 2009, 09:41

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.