Logo    
KDWinUtils
Helper library for MFC to Qt migration
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KTabCtrl Class Reference

The KTabCtrl class is used to replace DDX_Control tab bar data exchange. More...

#include <ktabctrl.h>

Public Member Functions

bool DeleteAllItems ()
 Removes all items from a tab control.
 
int GetCurSel () const
 Determines the currently selected tab in a tab control.
 
int GetItemCount () const
 Retrieves the number of tabs in the tab control.
 
int InsertItem (int nItem, const QString &lpszItem)
 Inserts a new tab in a tab control.
 
int SetCurSel (int nItem)
 Selects a tab in a tab control.
 
void setWidget (QTabBar *widget)
 
QTabBar * widget () const
 

Detailed Description

The KTabCtrl class is used to replace DDX_Control tab bar data exchange.

This class is the equivalent of CTabCtrl in MFC. It is a proxy for the widget, and can be used to manage tabs in a tab bar. It's using a QTabBar widget.

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/ctabctrl-class

Member Function Documentation

◆ DeleteAllItems()

bool KTabCtrl::DeleteAllItems ( )

Removes all items from a tab control.

◆ GetCurSel()

int KTabCtrl::GetCurSel ( ) const

Determines the currently selected tab in a tab control.

◆ GetItemCount()

int KTabCtrl::GetItemCount ( ) const

Retrieves the number of tabs in the tab control.

◆ InsertItem()

int KTabCtrl::InsertItem ( int nItem,
const QString & lpszItem )

Inserts a new tab in a tab control.

◆ SetCurSel()

int KTabCtrl::SetCurSel ( int nItem)

Selects a tab in a tab control.

◆ setWidget()

void KTabCtrl::setWidget ( QTabBar * widget)

Sets the widget the class is proxying.

◆ widget()

QTabBar * KTabCtrl::widget ( ) const

Returns the underlying widget the class is proxying.


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