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 852 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.
  • taek seoT Offline
    taek seoT Offline
    taek seo
    wrote on 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 ?

    raven-worxR 1 Reply Last reply
    0
    • taek seoT taek seo

      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 ?

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

      • Login

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