Results 1 to 3 of 3

Thread: Use Qt Creator's code editor in one's own Qt application?

  1. #1
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Use Qt Creator's code editor in one's own Qt application?

    This is a topic I have already mentioned before (see here), but I didn't get any luck back then, so here I go again.

    My application relies on a code editor and I am currently using QScintilla2 for that purpose. However, I would rather use Qt Creator's own code editor, if at all possible. I intend to check Qt Creator's source code and see what they have done in that respect, but just out of curiosity: has anyone managed to get Qt Creator's code editor to work in their Qt-based application? If so, then any hint would be most appreciated.

    With regards to QScintilla2, there is nothing wrong with it. It's just that I would rather 1) use a solution which is 100% Qt-based and 2) use a non-GPL solution (considering the nature of QScintilla2, a LGPL license would make more sense, but I appreciate that their authors would rather have you pay for it if you are not happy with a GPL license which is fair enough).

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Use Qt Creator's code editor in one's own Qt application?

    Have you tried? It seems that using the cppeditor plugin as-is will require inheriting a lot of the Qt Creator infrastructure. To adapt it seems a fair amount of work.

  3. #3
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Use Qt Creator's code editor in one's own Qt application?

    No, I haven't tried. I have just downloaded Qt Creator's source code and it would seem that the TextEditor plugin might be what I am after (the CppEditor plugin makes use of it). Still, it seems like it might a bit of work to 'extract' it and make it a standalone widget.

Similar Threads

  1. Use Qt Creator's text editor widget?
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2011, 21:39
  2. a premade code editor?
    By jajdoo in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2010, 11:16
  3. Creating simple text editor from the eamples code
    By overcast in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2007, 15:46
  4. Code editor
    By Michiel in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2006, 17:20
  5. Give Kdevelop code editor better appearence
    By zlatko in forum KDE Forum
    Replies: 3
    Last Post: 17th January 2006, 17:02

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.