czyblog's People
Forkers
wfy morecash canoshu pkzju zhangliweidev 405755490 kingdom412 okichallenge kayvanguo electri erillfire 362115815 zeanzhang mingyueruya zenggm qq490455545 yangzhen0512 zhangtianren mrb629 nealcou doubley gonion goofyyyr hiyanglian cdmatt jingzhesiye liujlin bnufree worchin lsg1994 yunchina chenlinyan earthloong zhaofujin123 yycx2016 haiziyan azureatom meatwc pkutsu wflishh ysbzc789 cuimy 752438771 quickboy1220 kookie424 stephenzhang-hash nonameyan shenzixiao fengtaoliming haoljp zhangfanyuanhang9 ourmail002 zy173501640 thy2004 songyu408 liuleinet jiangharry guojing555 tqtiimy aiai2haoyue sixtnsaki duoxuanyi leehistory cpexplorer chong-git yifanxz hituck ourran williamyinwei wengzhenyucode aimybbe linyunzhi wizikim peterlixue tianzf elsahan foxbryant luzhongtong focusalltheway yezi120420 qinglecheng lvshunxia hajungong007 hulaishun gameapk sxpsxp12 00z00 vealang nkliming mlio zbx91 zhangxbin sskthh niliuchudao jx5261zy erricyin lirui233 fristmiao bb2b jalen1986czyblog's Issues
[bug]ExcelBase::convertToColName
当data是26的整数倍时,mode= data % 26 == 0,导致转换出“@”字符,导致表格保存失败。
wps表格无法写入数据的解决方案
-
问题
可能在wps 2013以上版本,会遇到无法向xls写入数据的问题。 -
解决方案
//excelbase.cpp
void ExcelBasePrivate::construct() {
...
if (excel->isNull()) {
excel->setControl("ket.Application"); //连接WPS2013以上控件
}
...
}
void ExcelBase::writeCurrentSheet(const QList<QList<QVariant> > &cells) {
...
//将range->setProperty("Value", var); 替换为 range->dynamicCall("SetValue(const QVariant&)", var);
//wps不支持setProperty方式写入,而office都支持
//其它地方也要修改...
...
}
如何获取Excel一定范围内的数据
比如我一次想获取1-100行的数据,除了 d->sheet->querySubObject("Cells(int, int)", row, col)这样循环有没有其他方法,这样速度应该会很慢。求解,十分感谢
如何给sheet2 写数据?
我用m_xls->setCurrentSheet(2);
m_xls->writeCurrentSheet(m_datas);这2句为什么还是不能给sheet2 写数据。
用release编译能读不能写,用的QT5.9
QString xlsFile = QFileDialog::getExistingDirectory(this);
if(xlsFile.isEmpty())
return;
xlsFile += "/excelRWByCztr1988.xls";
if(m_xls.isNull())
m_xls.reset(new ExcelBase);
m_xls->create(xlsFile); //返回true
m_xls->setCurrentSheet(1); // 返回true
m_xls->writeCurrentSheet(write_data); //返回false,write_data已测试行数为187
m_xls->save();
没有找到main.cpp文件
请教关于QThread中有其他继承类的情况 - Asking about if there's other heritage class in QThread usage
抱歉打扰了,拜读您的关于“[TOC] #Qt使用多线程的一些心得——1.继承QThread的多线程使用方法”一文后,在自己的代码中测试关于QThread 与 QObject两种实现方式。
Sorry for bothering, I'm testing 2 different ways (QThread, and QObject) in my own code.
在测试QThread继承类实现多线程时,总是出现如下报错。
When testing the QThread inheritance class to achieve multithreading, always get the error below.
QObject: Cannot create children for a parent that is in a different thread. (Parent is ArtNetRxThread(0x7f894dd6ec10), parent's thread is QThread(0x7f894dd090d0), current thread is ArtNetRxThread(0x7f894dd6ec10)
我猜测是由于我的类中有这种构架的继承类导致的。
I guess it is due to the inheritance of this kind of things in my class.
.h file
private:
....
QUdpSocket *udpSocket = nullptr;
.cpp file
void ArtNetRxThread::run()
{
....
udpSocket = new QUdpSocket(this);
udpSocket->bind(1936, QUdpSocket::ShareAddress);
connect(udpSocket, &QUdpSocket::readyRead,
this, &ArtNetRxThread::processPendingDatagrams);
....
}
我想知道,这种情况还有可能使用由QThread继承类来实现吗?还是只能使用QObject的方式呢?
I wish to know, is this possible to use QThread inherited class to achieve? Or can I only use QObject method?
非常感谢!
Thanks a lot!
启动出错
Out of memory in ....\include/QtCore/../../src/corelib/tools/qvector.h, line 564terminate called without an active exception。
关于\GitHub\czyBlog\tech\fastReadExcel\src\fastReadExcelInWindows中release启动失败
我引用了 \GitHub\czyBlog\tech\fastReadExcel\src\fastReadExcelInWindows 代码
在编译的时候 debug 未出现问题,可以调试 ;
但是release版本时 会出现问题;启动失败;有时是可以启动但重复启动时失败;
Desktop_Qt_5_10_1_MSVC2015_32bit-Release\release\fastReadExcelInWindows.exe...
程序异常结束。
The process was ended forcefully.
请问 可能的原因是什么 ?
我的qt没有提供足够的信息。 我推测是内存的问题。 在某次信息中提示qvector.h 中552行 即reallocData(const int sz) { reallocData(sz, d->alloc); }该函数问题。 但是具体原因应该是哪里的问题。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.