i new qt. working on graphics. i using qwidget drawing graphics(for drawing graphics in qwidget paint event). need draw background , foreground graphics. background fixed graphics. foregrounds drawing lines. each 100 millisecond need draw 20points. drawing time 8 sec. total need draw 1600 points (total points represents contentious line). i using qtimer invoke drawing in each 100ms. first few drawing drawn fast. in middle of drawing it's become slow. the problem need draw foreground , background in each 100ms. please me fix problem. if 1 have sample code please provide. in advance. is there way draw partial area ie. particular modified region of graphics? qpainter-drawing can slow without hardware support. using qgraphicsview won't if lines visible, since internally uses qpainter anyway. if have draw 20 new points (or lines) per update , per update background gets cleared have render again, there few things try: 1) disable background autofill. see...
writing file utility strip out non-ascii characters files. have regex: regex rgx = new regex(@"[^\u0000-\u007f]"); which works fine. unfortunatly, i've discovered silly people use right angles (¬) delimiters in files, these stripped out well, need those! i'm pretty new regex, , understand basics, awesome! thanks in advance! you need include code point angle bracket in set: try this: regex rgx = new regex(@"[^\uxxxx\u0000-\u007f]"); or this: regex rgx = new regex(@"[^\uxxxx-\uxxxx\u0000-\u007f]"); (where xxxx unicode code point character want preserve.) the reason giving 2 options here know can specify multiple ranges within 1 negative character group, don't know if can match individual characters ranges.
Comments
Post a Comment