[QScintilla] Problem using annotate

Samuel Nascimento Pagliarini snpagliarini at gmail.com
Thu Sep 30 18:00:25 BST 2010


I have updated qscintilla to the latest version. the problem was gone...

2010/9/27 Samuel Nascimento Pagliarini <snpagliarini at gmail.com>:
> Hey,
>
> this is the code I am using to annotate into the editor: (novo is a QFile)
>
> QByteArray array = novo.readAll();
>        QString aux;
>
>        novo.close();
>
>        aux.prepend(array);
>
>        ui->editor->setText(aux);
>
>        QsciStyle ok(-1);
>        ok.setColor(QColor("green"));
>
>        QList<int>::iterator it;
>
>        it = my->branch_handler.lines.begin();
>
>        while (it != my->branch_handler.lines.end()) {
>                QsciStyledText helper(QString("this is not working :-("), ok);
>                ui->editor->annotate(*it, helper);
>                it++;
>        }
>
> for some reason it is not working. every line that I annotate is
> showing the text content doubled. The attached image shows that
> behavior on lines 64, 65, ...
>
> Any thoughts?
>


More information about the QScintilla mailing list