qrTextFormattingDelegate: R-style Text Formatting Delegate

Description Usage Arguments Value Author(s) Examples

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


Search within the qtbase package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.