<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
I am having great difficulty applying a QsciStyle object to an annotation. No matter what I do I can't get it to style the way I want.<br><br>I set up:<br><br>QsciStyle myStyle(-1,"Annotation",QColor(255,0,0),QColor(255,150,150),QFont("Courier New",-1,-1,true),true);<br><br>then later on I do:<br><br>myScintilla->annotate(line,"some text",myStyle);<br><br>The "some text" always comes out with color black, paper white and the default font.<br><br>What am I doing wrong?<br><br>I verified that myStyle is set up correctly and has been given the style # of 62. I tried passing myStyle->style() to the annotate() API to get it to resolve to a different overload, but that gave the same results.<br> </div></body>
</html>