I inherit a class from QSyntaxHighlighter , override the highlightBlock(const QString&) method highlightBlock(const QString&) , but when I create an instance and pass it to the QTextEdit::document() constructor, the following error pops up when I start the application:
Debug error Program: C:\Qt\5.8\msvc2013_64\bin\Qt5Cored.dll Module: 5.8.0 File: global\Qglobal.cpp Line: 3070 ASSERT: "uint(i) < uint(size())" in file I do everything as it is written in the book but an error pops up, please help me figure out why.