Create and control radio button.

This class is a JS wrapper around Qt's QRadioButton class

A QRadioButton provides ability to add and manipulate native radio button widgets.

QRadioButton inherits from NodeWidget


const { QRadioButton } = require("@nodegui/nodegui");
const radioButton = new QRadioButton();

new QRadioButton(parent?)

  • parent NodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.

Static Methods

QRadioButton can access all the static methods defined in NodeWidget

Instance Properties

QRadioButton can access all the instance properties defined in NodeWidget

Instance Methods

QRadioButton can access all the instance methods defined in NodeWidget

Additionally it also has the following instance methods:


Sets the given text to the radioButton.

  • text string