QT Class RadWidget

 

Overview

The RadWidget class implements an invisible control which can have other controls attached to it (see the setLayout method).

new

Overview

The new function creates a new RadWidget object and returns a pointer to the newly created object. The RadWidget is one of the class key words accepted by the qt new: function. There can be many RadWidget objects.

 

Syntax

(qt new: RadWidget:)

Arguments

ReturnsAlways returns a pointer to the newly created RadWidget object.

 

Example1

(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a new RadWidget object

delete

Overview

The delete function destroys a RadWidget object and returns a null pointer.

 

Syntax

(qt delete: RadWidgetPtr)

Arguments

radRadWidgetPtrThe pointer to the RadWidget object to be destroyed.
ReturnsAlways returns a null pointer.

 

Example1

(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object.
(setq radWidgetPtr (qt delete: radWidgetPtr)) ;; Destroy the RadWidget object.

setFocus

Overview

The RadWidget setFocus function sets the GUI focus to the RadWidget.

 

Syntax

(qt radWidgetPtr setFocus:))

Arguments

returns Always returns #void

 

Example1

(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object.
(qt radWidgetPtr setFocus:) ;; Set the GUI focus to the RadWidget object.

setLayout

Overview

The setLayout function populates the RadWidget's main layout object. The main layout object must contain the controls and sublayouts which populate the RadWidget.

 

Syntax

(qt RadWidgetPtr setLayout: RadVBoxLayoutPtr)

Arguments

ReturnsAlways returns a #void value.

 

Example1

        (setq radWidgetPtr (qt new: RadWidget:))        ;; Create a RadWidget object.
        (qt radWidgetPtr setLayout: RadVBoxLayoutPtr)   ;; Set the RadWidget main layout to a vertical layout box.
        

 

Syntax

(qt RadWidgetPtr setLayout: RadHBoxLayoutPtr)

Arguments

ReturnsAlways returns a #void value.

 

Example1

        (setq radWidgetPtr (qt new: RadWidget:))          ;; Create a RadWidget object.
        (qt radWidgetPtr setLayout: RadHBoxLayoutPtr)     ;; Set the RadWidget main layout to a horizontal layout box.