minor, for speedup processing
I dont use GitHub. Please use Git if the Sourceforge. Re demo, I mean QtRptDemo folder. I think code for Charts in the mainwindow.cpp
Hello, there is a demo application which shows all capabilities. Inside of it there are two examples how build and use a chart, dynamically as well. Did you checked it?
I have added embedded function "Substring". You can take sources from git and build it or wait new release
added embedded function "Substring"
You can add qsqlmysql.dll as you wish. It was not added by windeployqt utility as there is no any links with it. At the next release I will add it
Do you mean embedded script language in the QtRPT ? Or do you mean extraction a substring in your application ?
QString QString::left(int n) const Returns a substring that contains the n leftmost characters of the string. The entire string is returned if n is greater than or equal to size(), or less than zero. QString x = "Pineapple"; QString y = x.left(4); // y == "Pine"
not clear what problem do you have? You can do it by C++ or Qt functionality.
yes, that was a bug. Now it is fixed, please pickup a fresh files from GIT repo
On the fly object construction, bug fixing
New version QRPT project 3.1.0
V3.1.0
there is now way to make image round
minor
minor
Please make sure that you have Qt Charts installed
minor
Hello, many thanks for using QtRPT project, please advise what pro file do you use for build QtRPT library?
code optimization
DateTime bug fixed
bug fixing
Designer bug fix
HTML rendering, small bug fix
working with XYZ
minor
-
Report title should be under page header
I have checked on my side - all is ok
-
minor
Updater removed
small bug fix
There is ability to use several DataGroupHeader. You may try and combine it
Sorry, not clear your question. Could you provide any picture (drawing) what you mean
Hi, if you use MasterDataBand, you should define the row count that will be for your data. Add the code as below. Otherwise dont use MasterDataBand QObject::connect(report, SIGNAL(setDSInfo(DataSetInfo &)), this, SLOT(setDSInfo(DataSetInfo &))); void ExampleDlg1::setDSInfo(DataSetInfo &dsInfo) { dsInfo.recordCount = ui->tableWidget->rowCount(); }
Basic of programming language like C++, JavaScipt, etc. For comparig you should use two == instead of =
very strange, all work on my side. Please take into attention that for comparing you should use == instead of single = It is a basic of programming language
conditional formating does not work
Please check your syntax. Take a look at the manual. You use wrong. Correct is [myvalue] = 'test' I tried to use myvalue = 'test' myvalue = test
Donation
Can you attach screenshot with that message or pass it to me by email. I will do request to support
Yes, there is such feature in the designer. It is a silence mode for generation pdf file. I dont remember exactly but try like below Qtrptdesigner report.xml report.pdf
If someone want support the QtRprProject and make donation, please use a link to PayPal account Donation
The engine resizes the watermark image automatically to fit on the page. There is no option set size for watermark image
The webversion of the QtRptDesiger was published here QtRptWebDesinger
minor
interim, version needs additional testing
Good afternoon, I apologize for not answering in time - life circumstances. I have taken note of your comments and will try to correct them. I'm glad that you liked my project and you are using it. As I have free time, I improve it and fix the errors found.
temp ScriptEngine as a pointer
reverting back 2 previous commits
Engine work optimization (sectionField function)
temp ScriptEngies as a pointer
QtRPT enabled to work with various DB. But for working with DB, Qt requiers the driver for working with appropriate DB. Please google for this issue
This script is written in the XML file. But also you can write custom processing in the code of you application by Qt, there is also demo for such processing. You should decide what method is a best for you
This script is written in the XML file. But also you write custom processing in the code of you application by Qt, there is also demo for such processing. You should decide what method is a best for you
In QtRPT you can use Script language for such controlling. Take a look at demo
The page Header prints on every page and it has a more priority than report title. You can not change order of the band.
If your current version fits your, youd dont need to update. Please check the setting, as I remember, you can switch off updates checking
If your current fits your, youd dont need to update. Please check the setting, as I remember, you can switch off updates checking
minor
Merge branch 'master' of https://git.code.sf.net/p/qtrpt/code_git
some bugs fixing
see example at above or source code of demo
Thanks for the contribution. The files were added and uploaded to the git
Added Polish language
Hi polpol, many thanks for using QtRPT project. The Poland language is absent as was not contributer that could help with translation. If you want to help - you are welcome! When you finished work with trasnlation, pass the translated files to me and I include them into the project
Hi polpol, many thanks for using QtRPT project. The Poland language is absent as was not contributer that could help with translation. If you wat to help - you are welcome! When you finished work with trasnlation, pass the translated files to me and I include them into the project
take a look at source of Demo files. setDSInfo is a SLOT - you need connect it with appropriate SIGNAL
void ExampleDlg1::setDSInfo(DataSetInfo &dsInfo) { dsInfo.recordCount = ui->tableWidget->rowCount(); }
I have tested on my side and I am affraid to directly use a QtRPT in a thread, I need to redo a lot in it. You can create an intermediate class in which the QtRPT will be located and called. And put this intermediate class in the thread
QMetaObject::invokeMethod(report, "printExec", Qt::QueuedConnection, Q_ARG(bool, true), Q_ARG(bool, false), Q_ARG(QString, "") ); please replace as
did you replace qtrpt.h by file from git repo?
thread->start(); //report->printExec(true,false); //<<<<<<<<<Remove this line
And try run as below thread= new QThread(this); report=new QtRPT(); report->moveToThread(thread); QString dirpath=QDir::currentPath().append("/release/report/productquantity.XML"); report->loadReport(dirpath); QObject::connect(report, SIGNAL(setValue(const int, const QString, QVariant&, const int)), this, SLOT(setValue(int, QString, QVariant&, int))); QObject::connect(report, SIGNAL(setDSInfo(DataSetInfo&)), this, SLOT(setDSInfo(DataSetInfo&))); QObject::connect(thread, &QThread::started, this, [=]()...
update from git repo (sourceforge) the file qtrpt.h
minor
-
do you use DLL and build from source code?
yes, it is. I will try to make some small correction in the code. I hope in 1H will be ready
looks like the QtRPT is not moved to the QThread
do you have any warning in Qt Creator when execute print generation?
hi many thanks for using QtRPT project. Yes the moving instance of QtRpt to the thread is a good solution. report=new QtRPT(); report->moveToThread(thread); thread->start(); I think you dont need assign parent to Qtrpt.
-
-
-
I cant to say, as I never used cmake.
I think, you should your paths again on row which error folder is 2.2.1/QtRptDesigner, I am not sure that is correct path
Check the paths in the project and make Clean/qmake/Rebuild
3.0.0 release
New version QtRPT project 3.0.0 Now we can use Qt6