Package node_manager_fkie :: Module html_delegate :: Class HTMLDelegate
[frames] | no frames]

Class HTMLDelegate

source code

python_qt_binding.QtWidgets.QStyledItemDelegate --+
                                                  |
                                                 HTMLDelegate

A class to display the HTML text in QTreeView.

Instance Methods
 
__init__(self, parent=None, check_for_ros_names=True, dec_ascent=False, is_node=False) source code
 
paint(self, painter, option, index)
Use the QTextDokument to represent the HTML text.
source code
 
sizeHint(self, option, index)
Determines and returns the size of the text after the format.
source code
Class Methods
 
toHTML(cls, text, check_for_ros_names=True, is_node=False)
Creates a HTML representation of the given text.
source code
Method Details

paint(self, painter, option, index)

source code 

Use the QTextDokument to represent the HTML text.

sizeHint(self, option, index)

source code 

Determines and returns the size of the text after the format.

toHTML(cls, text, check_for_ros_names=True, is_node=False)
Class Method

source code 

Creates a HTML representation of the given text. It could be a node, topic service or group name. :param str text: a name with ROS representation :return: the HTML representation of the given name :rtype: str