惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
量子位
B
Blog RSS Feed
Schneier on Security
Schneier on Security
L
LINUX DO - 最新话题
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
N
News | PayPal Newsroom
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
PCI Perspectives
PCI Perspectives
aimingoo的专栏
aimingoo的专栏
D
Docker
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
O
OpenAI News
C
Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Help Net Security
Help Net Security
Scott Helme
Scott Helme
The Hacker News
The Hacker News
Y
Y Combinator Blog
A
Arctic Wolf
V
V2EX
P
Proofpoint News Feed
Simon Willison's Weblog
Simon Willison's Weblog
A
About on SuperTechFans
S
Securelist
G
Google Developers Blog
Cyberwarzone
Cyberwarzone
The GitHub Blog
The GitHub Blog

博客园 - 凤凰_1

多边形近似:最小周长多边形算法MPP 多阈值otsu的opencv实现 在Opencv中自定义了一个相位函数,获取复数矩阵的相位 cvIsInf与cvIsNan函数 Mandelbrot set 以parallel_for_实现 opencv的并行操作parallel_for_的问题 CV_WRAP和CV_EXPORTS_W opencv超级像素示例 opencv中自定义的双线性二次插值的图像旋转及缩放 opencv4.x 中的plot函数绘制二维Mat C++版DNN最简主体框架 C++版全连接神经网络 C++版加载MNIST图像集合 C++版的神经网络训练用的图像集合加载 c\c++宏定义,四个参数求最大值 - 凤凰_1 - 博客园 自定义c++二维动态数组 用Cmake 编译OpenCV常见的错误 Opencv中的dft()和idft()示例 C++仿Matlab的bsxfun函数
在Qt中,如何在sheets末端添加新的sheet
凤凰_1 · 2023-04-01 · via 博客园 - 凤凰_1
void MainWindow::on_createNewSheet_clicked()
{
    try {
        int sheetsCount=work_sheets->property("Count").toUInt();
//        cout<<"sheetsCount="<<sheetsCount<<endl;
        //获取最后一个sheet的指针
        QAxObject * pLastSheet = work_sheets->querySubObject("Item(int)",sheetsCount);
//        work_sheet =work_sheets->querySubObject("Item(int)",sheetsCount);
        //添加新sheet,此时默认在pLastSheet之前插入。
        pLastSheet->dynamicCall("Activate()");
       QAxObject* newSheet= work_sheets->querySubObject("Add()");
       //为了把新插入的工作表放到所有sheets的最后,需要pLastSheet移动(move)到newSheet之后。
       newSheet->dynamicCall("Move(QVariant)",work_sheet->asVariant());
        pLastSheet->dynamicCall("Move(QVariant)",newSheet->asVariant());
        //下面是给新的sheet起个名字。
        QDate date;
        QString currentDate=date.currentDate().toString();
        QString sheetName=QString("choosed Student ")+(currentDate);
        newSheet->setProperty("Name",sheetName);
    } catch (...) {
        qCritical()<<"创建sheet失败...";
    }
}

posted @ 2023-04-01 15:59  凤凰_1  阅读(181)  评论()    收藏  举报