[QScintilla] Problem using annotate
Samuel Nascimento Pagliarini
snpagliarini at gmail.com
Mon Sep 27 18:06:00 BST 2010
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotate.jpg
Type: image/jpeg
Size: 117581 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20100927/da610894/attachment-0001.jpg>
More information about the QScintilla
mailing list