R-style Text Formatting Delegate

Share:

Description

Constructs an object of class RTextFormattingDelegate, which implements QItemDelegate for displaying text using the R formatting engine. This allows table and tree widgets (and any other widget that delegates to ItemDelegate) to correctly display NA values and to display numbers using the scipen and digits options.

Usage

1

Arguments

parent

The parent object, or NULL for none.

Value

An RTextFormattingDelegate object

Author(s)

Michael Lawrence

Examples

1
2
3
4
5
6
7
data(mtcars)
model <- qdataFrameModel(mtcars)
view <- Qt$QTableView()
view$setModel(model)
delegate <- qrTextFormattingDelegate()
view$setItemDelegate(delegate)
view