Examples of QTextCharFormat


Examples of com.trolltech.qt.gui.QTextCharFormat

    super(parent);
  }

  @Override
  protected void highlightBlock(String text) {
    QTextCharFormat format = new QTextCharFormat();
    QBrush brush = new QBrush(QColor.blue, Qt.BrushStyle.SolidPattern);
    format.setForeground(brush);
    format.setFontWeight(QFont.Weight.Bold.value());
   
    int index = text.indexOf("<");
    while (index >= 0) {
      int length = text.indexOf(">", index)-index+1;
      setFormat(index, length, format);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.