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. Can I used scintilla APIS in QScintilla object

Can I used scintilla APIS in QScintilla object

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.4k Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have following code

    Here’s the basic mechanism to load the source into Scintilla using ILoader. myView is an instance of Scintilla::ScintillaEdit. lFileSize is the size of the source file in bytes.

    char lBuffer[8192];
    size_t lCnt;
    ILoader lLoader = (ILoader) myView->createLoader(lFileSize);
    FILE* lFP = fopen(ofilename.toLatin1(), “r”);
    while (!feof(lFP)) {
    lCnt = fread(lBuffer, 1, sizeof(lBuffer), lFP);
    if (lLoader->AddData(lBuffer, lCnt) != SC_STATUS_OK) {
    // report error
    }
    }
    myView->setDocPointer(lLoader->ConvertToDocument());

    I want to used this above code in object of Qscintilla . for example

    class myscidir : public QScintilla {

    }

    how can I use this API in Qscintilla

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's a question you should ask to the authors of QScintilla directly.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        @SGaist said:

        QScintilla

        I treid but I did not get the answers . Any alternative direct contact for the same

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Please have some patience. You can't expect to send an email to a mailing list and have a response in the following minutes like you can't expect to have an answer on this forum right after you wrote your question. That might happen but it's not the rule nor the common case, not all people live in the same timezone as you.

          If you need live help then you should consider hiring someone to work for you.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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