Comments (15)
Do you mean something like QtRpt's method data delivery ?
from limereport.
Yes. For simple interface on embedded
from limereport.
Do you know about limereport`s callback datasource ? In my opinion is rather close to this, isn't it ?
from limereport.
Yes i know and it better and have more features . But callback not its qt philosophy. For widget and for qml better work w signal/slots and qproperties. We can try to make qml demo a test if can use callback fine., for example making report template, qml properties and parse to liblimereport
from limereport.
Callback it's only name as a matter of fact this method uses signal and slot mechanism :). I can simplify this interface to example in data delivery method i would request row count and wouldn't call second slot method that move datasource position.
from limereport.
itΕ right, w this .
from limereport.
Callback interface has been simplified
From now on if slot getCallbackData(const LimeReport::CallbackInfo& info, QVariant& data) returns row count then there is no more need to implement second slot changePos(const LimeReport::CallbackInfo::ChangePosType& type, bool& result);
example:
callbackDatasource = m_report->dataManager()->createCallbackDatasouce("simple_data");
connect(callbackDatasource, SIGNAL(getCallbackData(LimeReport::CallbackInfo,QVariant&)),
this, SLOT(slotSimpleCallbackGetData(LimeReport::CallbackInfo,QVariant&)));
void MainWindow::slotSimpleCallbackGetData(LimeReport::CallbackInfo info, QVariant &data)
{
switch (info.dataType) {
case LimeReport::CallbackInfo::ColumnCount:
data = 1;
break;
case LimeReport::CallbackInfo::RowCount:
data = 3;
break;
case LimeReport::CallbackInfo::IsEmpty:
data = false;
break;
case LimeReport::CallbackInfo::ColumnHeaderData:
if (info.index<1)
data = QString::number(info.index);
break;
case LimeReport::CallbackInfo::ColumnData:
data = m_list.at(info.index);
break;
}
}
from limereport.
Fine. Now im testing , making examples and documenting.
from limereport.
and how to paint embedded preview?
from limereport.
report->previewReport()
from limereport.
but can embeded in ui->widget->layout()->addWidget(report)?
?
i try cast as QWidget, but is QMainWindow (previweReport())
from limereport.
Ok, i will make Qwidget preview soon
from limereport.
I have added LimeReport::PreviewReportWidget.
report->createPreviewWidget(QWidget *parent = 0) returns it.
from limereport.
perfect, im making test app for createPreviewWidget and
Im making now travis-ci .travis.yml integration for this repository.
i push soon .travis.yml and build status on README.
from limereport.
ln -s liblimereport.so.1.0.0 liblimereport.so
ln -s liblimereport.so.1.0.0 liblimereport.so.1
ln -s liblimereport.so.1.0.0 liblimereport.so.1.0
rm -f ../build/5.6.0/release/lib/liblimereport.so.1.0.0
mv -f liblimereport.so.1.0.0 ../build/5.6.0/release/lib/
rm -f ../build/5.6.0/release/lib/liblimereport.so
rm -f ../build/5.6.0/release/lib/liblimereport.so.1
rm -f ../build/5.6.0/release/lib/liblimereport.so.1.0
mv -f liblimereport.so ../build/5.6.0/release/lib/
mv -f liblimereport.so.1 ../build/5.6.0/release/lib/
mv -f liblimereport.so.1.0 ../build/5.6.0/release/lib/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrglobal.cpp /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrglobal.h /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrdatasourcemanagerintf.h /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrreportengine.h /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrscriptenginemanagerintf.h /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrcallbackdatasourceintf.h /home/travis/build/newsages/LimeReport/include/
cp -f /home/travis/build/newsages/LimeReport/limereport/lrpreviewreportwidget.h /home/travis/build/newsages/LimeReport/include/
cp -f -R /home/travis/build/newsages/LimeReport/include/* /home/travis/build/newsages/LimeReport/build/5.6.0/release/lib/include/
cp: target β/home/travis/build/newsages/LimeReport/build/5.6.0/release/lib/include/β is not a directory
make[1]: *** [../build/5.6.0/release/lib/liblimereport.so.1.0.0] Error 1
make[1]: Leaving directory `/home/travis/build/newsages/LimeReport/limereport'
make: *** [sub-limereport-check_ordered] Error 2
now i push :
unix {
DESTDIR =
linux{
for(FILE,EXTRA_FILES){
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE)
}
QMAKE_POST_LINK += mkdir -p
}
macx{
for(FILE,EXTRA_FILES){
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE)
}
QMAKE_POST_LINK += mkdir -p
}
QMAKE_POST_LINK +=
}
from limereport.
Related Issues (20)
- build Limereport with CMAKE has SQL error (qt_import_plugins) HOT 2
- Issue with PreviewReportWidget::scroll(x, y)
- Switch from 1.3.x to 1.6.8, weird behaviour into slotGetCallbackData, anormal call of the SLOT HOT 1
- No viable conversion from returned value of type 'int' to function return type (vectors) on
- LimeReport will crash when I called printReprot(Qprinter* printer) HOT 9
- Functions date and time, etc HOT 2
- LIMEREPORT_VERSION_STR HOT 1
- Create empty limereport HOT 3
- Prints empty reports ubuntu 20.04 / Qt 6.4.3 HOT 15
- formatNumber bug
- Another small bug on formatNumber
- default database connection name HOT 1
- When executing the designReport() function, if there are more controls in my template, it will crash. HOT 1
- When using LimeReport, after executing refreshPages(), subsequent calls to loadFromFile() and designReport() result in a crash. HOT 1
- Possible typo error
- WebAssembly Support
- Overlap issue in reportFooter HOT 1
- Issues with displaying certain translations in Designer HOT 5
- Implement crossTab feature
- Rendering HTMl from QTextDocument is to small
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.
from limereport.