Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KButtonGroup Class Reference

The KButtonGroup class is used to replace DDX_Radio data exchange. More...

#include <kbuttongroup.h>

Inheritance diagram for KButtonGroup:
[legend]
Collaboration diagram for KButtonGroup:
[legend]

Public Member Functions

void addButton (QAbstractButton *button)
 
 KButtonGroup (int value)
 
 operator int () const
 
KButtonGroupoperator= (int value)
 

Detailed Description

The KButtonGroup class is used to replace DDX_Radio data exchange.

This class is a Qt QButtonGroup, with an int conversion to match the MFC API. There are no MFC equivalent for this class, as an int is used in MFC to represent the selected radio button.

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/standard-dialog-data-exchange-routines#ddx_radio

Constructor & Destructor Documentation

◆ KButtonGroup()

KButtonGroup::KButtonGroup ( int value)
explicit

Constructs a KButtonGroup with a default selected button.

Member Function Documentation

◆ addButton()

void KButtonGroup::addButton ( QAbstractButton * button)

Adds a button to the group. If a default value was set, the button will be checked if it's the right one.

◆ operator int()

KButtonGroup::operator int ( ) const

Returns the index of the current selected button.

◆ operator=()

KButtonGroup & KButtonGroup::operator= ( int value)

Selects the button at the given index.


The documentation for this class was generated from the following file: