Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to convert QsciDocument to QTextDocument?
QtWS25 Last Chance

How to convert QsciDocument to QTextDocument?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscidocumentqtextdocumentqscintilla
2 Posts 2 Posters 837 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    taek seo
    wrote on 24 May 2016, 05:46 last edited by A Former User
    #1

    hi !

    i want to make editor with Qscintilla
    and i need to serach all function,
    so i write this

    m_Write = new QsciScintilla(this);
    QTextDocument *document = m_Write->document();
    QTextCursor highlightCursor(document);
    QTextCursor cursor(document);

    but
    error: cannot convert 'QsciDocument' to 'QTextDocument*' in initialization

    how to convert 'QsciDocument' to 'QTextDocument*' ?
    or
    other way to find all word ?

    R 1 Reply Last reply 24 May 2016, 05:51
    0
  • R Offline
    R Offline
    raven-worx Moderators
    replied to taek seo on 24 May 2016, 05:51 last edited by
    #2

    @taek-seo said:

    how to convert 'QsciDocument' to 'QTextDocument*' ?
    or
    other way to find all word ?

    you don't since it doesn't subclass QTextDocument.

    Also i don't see any accessible methods in the QsciDocument class?!

    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
    If you have a question please use the forum so others can benefit from the solution in the future

    1 Reply Last reply
    0

2/2

24 May 2016, 05:51

  • Login

  • Login or register to search.
2 out of 2
  • First post
    2/2
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved