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?

How to convert QsciDocument to QTextDocument?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscidocumentqtextdocumentqscintilla
2 Posts 2 Posters 855 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
    • T taek seo
      24 May 2016, 05:46

      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 Offline
      R Offline
      raven-worx
      Moderators
      wrote 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

      1/2

      24 May 2016, 05:46

      • Login

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