RibbonBar RibbonPage切换事件

在开发的过程中,我们会用到点击切换page,来响应对应的事件,例如以下事件:

头文件中:

void ribboncurrentPageIndexChanged(int index);

实现文件中:

connect(ribbonBar(), SIGNAL(currentPageIndexChanged(int)), this, SLOT(ribboncurrentPageIndexChanged(int)));

void QtitanRibbon5Demo::ribboncurrentPageIndexChanged(int index)

{

switch (index)

{

case 0:

{

int y = 0;

break;

}

case 1:

{

int y = 0;

break;

}

default:

break;

}

}

相关推荐
Bczheng14 小时前
VS2022 安装MFC和QT
c++·qt·mfc
会编程的小孩5 小时前
8.19号函数
qt
蓝祁子yoky1 天前
Qt学习日记 Day15:网络编程(二)- UDP基础
网络·qt·学习
读书札记20221 天前
Qt UTF-8和UTF-8(BOM)
开发语言·qt
ShineWinsu1 天前
对于Qt:QProgressBar常见属性的解析
开发语言·c++·qt·进度条·gui·定时器·qprogressbar
ShineWinsu1 天前
对于Qt:QLCDNumber常见属性以及QTimer的解析
服务器·数据库·c++·qt·gui·qtimer·qlcdnumber
听风吹等浪起2 天前
第26章:ViT+InceptionDW+FocalLoss改进|CT骨折影像二分类完整Pytorch实现(含PyQt5推理GUI)
pytorch·qt·分类
ShineWinsu2 天前
对于Qt:QRadioButton常见属性以及QButtonGroup的解析
数据库·c++·qt·microsoft·gui·qradiobutton·qbuttongroup
sycmancia2 天前
Qml——Image和AnimatedImage使用
qt
lhbweilai2 天前
QT(了解各个控件和布局)上
数据库·qt