mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
added more auto-generated screenshots
This commit is contained in:
parent
ec40e6c7d8
commit
a1604e1eeb
@ -67,21 +67,50 @@ endif()
|
|||||||
if(JKQtPlotter_BUILD_EXAMPLES)
|
if(JKQtPlotter_BUILD_EXAMPLES)
|
||||||
|
|
||||||
# custom target that generates the images for the JKQTMathText documentation
|
# custom target that generates the images for the JKQTMathText documentation
|
||||||
set(JKQTPlotter_GenerateDocScreenshots_DefaultOptions --screenshotdir="${CMAKE_CURRENT_LIST_DIR}/../screenshots/" --screenshot --smallscreenshotplot)
|
set(JKQTPlotter_GenerateDocScreenshots_DefaultOptions --screenshotdir="${CMAKE_CURRENT_LIST_DIR}/../screenshots/" --screenshot --disablehighdpi )
|
||||||
|
# list examples for which to save a screenshot
|
||||||
|
# the output basename equals the example name in this list,
|
||||||
|
# unless you specify the basenames by adding it/them after a slash '/'
|
||||||
|
# e.g. "barchart/barchart,barchart_hor"
|
||||||
set(JKQTPlotter_GenerateDocScreenshots_From
|
set(JKQTPlotter_GenerateDocScreenshots_From
|
||||||
scatter
|
scatter
|
||||||
|
simpletest
|
||||||
|
barchart/barchart_hor,barchart
|
||||||
|
wiggleplots/wiggleplot_x,wiggleplot_y
|
||||||
|
advplotstyling/advancedlineandfillstyling
|
||||||
|
boxplot
|
||||||
|
contourplot
|
||||||
|
violinplot/violinplot_hor,violinplot_vert
|
||||||
|
errorbarstyles
|
||||||
|
dateaxes/dateaxes,dateaxes_timeaxis
|
||||||
|
distributionplot/test_distributionplot
|
||||||
|
evalcurve
|
||||||
|
filledgraphs
|
||||||
|
functionplot/functionplot,functionplot_fy
|
||||||
|
styledboxplot
|
||||||
|
test_multiplot
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(JKQTPlotter_GenerateDocScreenshots
|
add_custom_target(JKQTPlotter_GenerateDocScreenshots
|
||||||
COMMENT "Building JKQTPlotter Documentation Screenshots ..."
|
COMMENT "Building JKQTPlotter Documentation Screenshots ..."
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(example ${JKQTPlotter_GenerateDocScreenshots_From})
|
foreach(ex ${JKQTPlotter_GenerateDocScreenshots_From})
|
||||||
|
string(REGEX MATCH "(.+)/(.+)" dummy ${ex})
|
||||||
|
if(CMAKE_MATCH_1 STREQUAL "" OR CMAKE_MATCH_2 STREQUAL "")
|
||||||
|
set(example ${ex})
|
||||||
|
set(basename ${ex})
|
||||||
|
else()
|
||||||
|
set(example ${CMAKE_MATCH_1})
|
||||||
|
set(basename ${CMAKE_MATCH_2})
|
||||||
|
endif()
|
||||||
|
|
||||||
set(loc_target_name JKQTPlotter_GenerateDocScreenshots_${example})
|
set(loc_target_name JKQTPlotter_GenerateDocScreenshots_${example})
|
||||||
set(dep_name jkqtptest_${example})
|
set(dep_name jkqtptest_${example})
|
||||||
|
string(TOUPPER ${example} example_upper)
|
||||||
add_custom_target(${loc_target_name}
|
add_custom_target(${loc_target_name}
|
||||||
COMMENT "Building JKQTPlotter Documentation Screenshot: ${loc_name_upper}"
|
COMMENT "Building JKQTPlotter Documentation Screenshot: ${example_upper}"
|
||||||
COMMAND $<TARGET_FILE:${dep_name}> ${JKQTPlotter_GenerateDocScreenshots_DefaultOptions} --screenshotbasename=${example}
|
COMMAND $<TARGET_FILE:${dep_name}> ${JKQTPlotter_GenerateDocScreenshots_DefaultOptions} --screenshotbasename=${basename}
|
||||||
WORKING_DIRECTORY ${JKQtPlotter_QT_BINDIR}
|
WORKING_DIRECTORY ${JKQtPlotter_QT_BINDIR}
|
||||||
DEPENDS ${dep_name}
|
DEPENDS ${dep_name}
|
||||||
)
|
)
|
||||||
@ -90,6 +119,9 @@ if(JKQtPlotter_BUILD_EXAMPLES)
|
|||||||
|
|
||||||
unset(loc_target_name)
|
unset(loc_target_name)
|
||||||
unset(dep_name)
|
unset(dep_name)
|
||||||
|
unset(example)
|
||||||
|
unset(example_upper)
|
||||||
|
unset(basename)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
@ -13,7 +13,7 @@ All test-projects are Qt-projects that use qmake to build. You can load them int
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><th>Screenshot<th>Description<th>Notes
|
<tr><th>Screenshot<th>Description<th>Notes
|
||||||
<tr><td> \image html jkqtplotter_simpletest1_small.png
|
<tr><td> \image html simpletest_small.png
|
||||||
<td> \subpage JKQTPlotterSimpleTest
|
<td> \subpage JKQTPlotterSimpleTest
|
||||||
<td> `JKQTPXYLineGraph` <br> C++-style QVector arrays of data
|
<td> `JKQTPXYLineGraph` <br> C++-style QVector arrays of data
|
||||||
<tr><td> \image html scatter_small.png
|
<tr><td> \image html scatter_small.png
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.1 KiB |
@ -7,7 +7,7 @@ All test-projects are Qt-projects that use qmake to build. You can load them int
|
|||||||
|
|
||||||
| Screenshot | Description | Notes |
|
| Screenshot | Description | Notes |
|
||||||
|:-------------:| ------------- | ------------- |
|
|:-------------:| ------------- | ------------- |
|
||||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/jkqtplotter_simpletest1_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/simpletest/README.md) | [Very Basic Example (Line Graph)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/simpletest/README.md) | `JKQTPXYLineGraph` <br> C++-style QVector arrays of data |
|
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/simpletest_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/simpletest/README.md) | [Very Basic Example (Line Graph)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/simpletest/README.md) | `JKQTPXYLineGraph` <br> C++-style QVector arrays of data |
|
||||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/scatter_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/scatter/README.md) | [Very Basic Example (Scatter Graph)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/scatter/README.md) | `JKQTPXYScatterGraph` <br> Iterator-Interface for JKQTDatastore |
|
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/scatter_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/scatter/README.md) | [Very Basic Example (Scatter Graph)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/scatter/README.md) | `JKQTPXYScatterGraph` <br> Iterator-Interface for JKQTDatastore |
|
||||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/speed_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/speed) | [Line Graph with Live Data / Speed Test](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/speed) | `JKQTPXYLineGraph` <br> external `std::array<double,N>` data, not owned by datastore <br> live-data, measure plotting speed <br> tipps to increas plotting speed |
|
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/speed_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/speed) | [Line Graph with Live Data / Speed Test](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/speed) | `JKQTPXYLineGraph` <br> external `std::array<double,N>` data, not owned by datastore <br> live-data, measure plotting speed <br> tipps to increas plotting speed |
|
||||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/symbols_and_styles_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/symbols_and_styles) | [Line Graph with Different Symbols and Line Styles](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/symbols_and_styles) | `JKQTPXYLineGraph` <br> C++ vector of data <br> setting line styles and symbol styles <br> automatic graph coloring |
|
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/symbols_and_styles_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/symbols_and_styles) | [Line Graph with Different Symbols and Line Styles](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/symbols_and_styles) | `JKQTPXYLineGraph` <br> C++ vector of data <br> setting line styles and symbol styles <br> automatic graph coloring |
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS advplotstyling.qrc )
|
set(UIS advplotstyling.qrc )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterAdvancedLineAndFillStyling, JKQTPXYLineGraph, JKQTPSpecialLineHorizontalGraph, JKQTPBarVerticalGraph
|
* \ref JKQTPlotterAdvancedLineAndFillStyling, JKQTPXYLineGraph, JKQTPSpecialLineHorizontalGraph, JKQTPBarVerticalGraph
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -14,12 +15,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,10 +4,12 @@
|
|||||||
* \ref JKQTPlotterBarcharts
|
* \ref JKQTPlotterBarcharts
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpbarchart.h"
|
#include "jkqtplotter/graphs/jkqtpbarchart.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
#define Ndata 5
|
#define Ndata 5
|
||||||
|
|
||||||
@ -103,12 +105,8 @@ void doExample()
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc,argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
doExample<JKQTPBarVerticalGraph>();
|
doExample<JKQTPBarVerticalGraph>();
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBoxplotsGraphs
|
* \ref JKQTPlotterBoxplotsGraphs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
@ -118,7 +115,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
// show plotter and make it a decent size
|
// show plotter and make it a decent size
|
||||||
plot.show();
|
plot.show();
|
||||||
plot.resize(800,800);
|
plot.resize(600,600);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTCMakeLinkExample
|
* \ref JKQTCMakeLinkExample
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,10 +4,12 @@
|
|||||||
* \ref JKQTPlotterContourPlot
|
* \ref JKQTPlotterContourPlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpcontour.h"
|
#include "jkqtplotter/graphs/jkqtpcontour.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
// if deJKQTPSTATISTICS_PId, an animation is shown
|
// if deJKQTPSTATISTICS_PId, an animation is shown
|
||||||
//#definJKQTPSTATISTICS_PIIMATE
|
//#definJKQTPSTATISTICS_PIIMATE
|
||||||
@ -20,11 +22,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION<QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc,argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -148,7 +147,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
// 8. show plotter and make it a decent size
|
// 8. show plotter and make it a decent size
|
||||||
plot.show();
|
plot.show();
|
||||||
plot.resize(800,800);
|
plot.resize(600,600);
|
||||||
plot.setWindowTitle("JKQTPColumnContourPlot");
|
plot.setWindowTitle("JKQTPColumnContourPlot");
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlottersimpletest_datastore
|
* \ref JKQTPlottersimpletest_datastore
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBasicJKQTPDatastoreStatisticsGroupedStat
|
* \ref JKQTPlotterBasicJKQTPDatastoreStatisticsGroupedStat
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -19,12 +20,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBasicJKQTPDatastoreIterators
|
* \ref JKQTPlotterBasicJKQTPDatastoreIterators
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBasicJKQTPDatastoreRegression
|
* \ref JKQTPlotterBasicJKQTPDatastoreRegression
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtppeakstream.h"
|
#include "jkqtplotter/graphs/jkqtppeakstream.h"
|
||||||
@ -19,12 +20,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBasicJKQTPDatastoreStatistics
|
* \ref JKQTPlotterBasicJKQTPDatastoreStatistics
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtppeakstream.h"
|
#include "jkqtplotter/graphs/jkqtppeakstream.h"
|
||||||
@ -19,12 +20,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBasicJKQTPDatastoreStatistics2D
|
* \ref JKQTPlotterBasicJKQTPDatastoreStatistics2D
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpimage.h"
|
#include "jkqtplotter/graphs/jkqtpimage.h"
|
||||||
@ -19,12 +20,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
QElapsedTimer timer;
|
QElapsedTimer timer;
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES ${EXAMPLE_NAME}.qrc)
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterDateTimeAxes
|
* \ref JKQTPlotterDateTimeAxes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
@ -162,26 +163,23 @@ void drawWithTimeAxis(JKQTPlotter& plot) {
|
|||||||
|
|
||||||
// 9. show plotter and make it a decent size
|
// 9. show plotter and make it a decent size
|
||||||
plot.show();
|
plot.show();
|
||||||
plot.resize(600,400);
|
plot.resize(400,300);
|
||||||
plot.setWindowTitle("Time Axis");
|
plot.setWindowTitle("Time Axis");
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
JKQTPlotter plotDate;
|
JKQTPlotter plotDate;
|
||||||
drawWithDateAxis(plotDate);
|
drawWithDateAxis(plotDate);
|
||||||
plotDate.move(100,100);
|
//plotDate.move(100,100);
|
||||||
|
|
||||||
JKQTPlotter plotTime;
|
JKQTPlotter plotTime;
|
||||||
drawWithTimeAxis(plotTime);
|
drawWithTimeAxis(plotTime);
|
||||||
plotTime.move(100,550);
|
//plotTime.move(100,550);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterDistributionPlot
|
* \ref JKQTPlotterDistributionPlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -18,12 +19,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
@ -40,6 +37,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
std::random_device rd; // random number generators:
|
std::random_device rd; // random number generators:
|
||||||
std::mt19937 gen{rd()};
|
std::mt19937 gen{rd()};
|
||||||
|
gen.seed(12345);
|
||||||
|
|
||||||
// draw 301 random values from a gaussian distribution around 5 with width 3
|
// draw 301 random values from a gaussian distribution around 5 with width 3
|
||||||
const double th_mean=5;
|
const double th_mean=5;
|
||||||
@ -146,14 +144,14 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
|
|
||||||
// 9. autoscale the plot so the graph is contained
|
// 9. autoscale the plot so the graph is contained
|
||||||
plot.setXY(-6,16,-0.1,0.2);
|
plot.setXY(-6,16,-0.15,0.25);
|
||||||
|
|
||||||
// 10. Move key to top-left
|
// 10. Move key to top-left
|
||||||
plot.getPlotter()->setKeyPosition(JKQTPKeyInsideTopLeft);
|
plot.getPlotter()->setKeyPosition(JKQTPKeyInsideTopLeft);
|
||||||
|
|
||||||
// 11. show plotter and make it a decent size
|
// 11. show plotter and make it a decent size
|
||||||
plot.show();
|
plot.show();
|
||||||
plot.resize(800,650);
|
plot.resize(600,550);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterErrorBarStyles
|
* \ref JKQTPlotterErrorBarStyles
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterEvalCurves
|
* \ref JKQTPlotterEvalCurves
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
@ -14,12 +15,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a window that contains a line-edit to edit a function
|
// 1. create a window that contains a line-edit to edit a function
|
||||||
@ -73,7 +70,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
// show window and make it a decent size
|
// show window and make it a decent size
|
||||||
mainWin.show();
|
mainWin.show();
|
||||||
mainWin.resize(800,800);
|
mainWin.resize(600,600);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES filledgraphs.qrc )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterFilledGraphs
|
* \ref JKQTPlotterFilledGraphs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpfilledcurve.h"
|
#include "jkqtplotter/graphs/jkqtpfilledcurve.h"
|
||||||
@ -11,12 +12,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterFunctionPlots
|
* \ref JKQTPlotterFunctionPlots
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
@ -129,18 +130,14 @@ void drawExample(QApplication& app, const QString& name) {
|
|||||||
|
|
||||||
// show window and make it a decent size
|
// show window and make it a decent size
|
||||||
mainWin->show();
|
mainWin->show();
|
||||||
mainWin->resize(800,800);
|
mainWin->resize(600,600);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
drawExample<JKQTPXFunctionLineGraph>(app, "functionplot: JKQTPXFunctionLineGraph");
|
drawExample<JKQTPXFunctionLineGraph>(app, "functionplot: JKQTPXFunctionLineGraph");
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterGeometricArrows
|
* \ref JKQTPlotterGeometricArrows
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpgeometric.h"
|
#include "jkqtplotter/graphs/jkqtpgeometric.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window
|
// 1. create a plotter window
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
*
|
*
|
||||||
* \ref JKQTPlotterGeometricGraphsSimple
|
* \ref JKQTPlotterGeometricGraphsSimple
|
||||||
*/
|
*/
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@ -85,12 +86,8 @@ void drawEllExample(JKQTPlotter* plot, double x0, double y0, double wid, double
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a Widget with a plotter and some control-elements
|
// 1. create a Widget with a plotter and some control-elements
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
*
|
*
|
||||||
* \ref JKQTPlotterGeometricGraphs
|
* \ref JKQTPlotterGeometricGraphs
|
||||||
*/
|
*/
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a Widget with a plotter and some control-elements
|
// 1. create a Widget with a plotter and some control-elements
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlot
|
* \ref JKQTPlotterImagePlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plot;
|
JKQTPlotter plot;
|
||||||
|
@ -16,6 +16,7 @@ if(CImg_FOUND)
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlotModifier
|
* \ref JKQTPlotterImagePlotModifier
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plot;
|
JKQTPlotter plot;
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlotNoDatastore
|
* \ref JKQTPlotterImagePlotNoDatastore
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plot;
|
JKQTPlotter plot;
|
||||||
|
@ -16,6 +16,7 @@ if(OpenCV_FOUND)
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlotOpenCV
|
* \ref JKQTPlotterImagePlotOpenCV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES imageplot_userpal.qrc )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlot
|
* \ref JKQTPlotterImagePlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
@ -18,12 +19,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 0. tell the library where to find additional palettes.
|
// 0. tell the library where to find additional palettes.
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImpulsePlots
|
* \ref JKQTPlotterImpulsePlots
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpimpulses.h"
|
#include "jkqtplotter/graphs/jkqtpimpulses.h"
|
||||||
@ -14,12 +15,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -29,8 +29,8 @@ if(JKQtPlotter_BUILD_STATIC_LIBS)
|
|||||||
|
|
||||||
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
|
|
||||||
# precomiled headers to speed up compilation
|
# precomiled headers to speed up compilation
|
||||||
if (JKQtPlotter_BUILD_WITH_PRECOMPILED_HEADERS)
|
if (JKQtPlotter_BUILD_WITH_PRECOMPILED_HEADERS)
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "testmain.h"
|
#include "testmain.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
TestMain tab;
|
TestMain tab;
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterLogAxes
|
* \ref JKQTPlotterLogAxes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -15,12 +16,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -14,6 +14,7 @@ set(RESOURCES )
|
|||||||
set(UIS mandelbrotmainwindow.ui)
|
set(UIS mandelbrotmainwindow.ui)
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterMandelbrot
|
* \ref JKQTPlotterMandelbrot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "mandelbrotmainwindow.h"
|
#include "mandelbrotmainwindow.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
MandelbrotMainWindow widMain;
|
MandelbrotMainWindow widMain;
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES test_multiplot.qrc )
|
|||||||
set(UIS test_multiplot_ui.ui )
|
set(UIS test_multiplot_ui.ui )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterMultiPlotLayout
|
* \ref JKQTPlotterMultiPlotLayout
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -16,12 +17,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a widget
|
// 1. create a widget
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterParametricCurves
|
* \ref JKQTPlotterParametricCurves
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create two plotter windows that share the same internal datastore (for convenience)
|
// 1. create two plotter windows that share the same internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterParamScatter
|
* \ref JKQTPlotterParamScatter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES ${EXAMPLE_NAME}.qrc )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterParamScatterImage
|
* \ref JKQTPlotterParamScatterImage
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterParsedFunctionPlot
|
* \ref JKQTPlotterParsedFunctionPlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
@ -18,12 +19,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a window that conatins a line-edit to edit a function
|
// 1. create a window that conatins a line-edit to edit a function
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterRGBImagePlot
|
* \ref JKQTPlotterRGBImagePlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
@ -14,12 +15,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plot;
|
JKQTPlotter plot;
|
||||||
|
@ -16,6 +16,7 @@ if(CImg_FOUND)
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -16,6 +16,7 @@ if (OpenCV_FOUND)
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlotRGBOpenCV
|
* \ref JKQTPlotterImagePlotRGBOpenCV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES ${EXAMPLE_NAME}.qrc )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterImagePlotQImageRGB
|
* \ref JKQTPlotterImagePlotQImageRGB
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
@ -15,12 +16,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plot;
|
JKQTPlotter plot;
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
@ -20,7 +21,6 @@ if(JKQtPlotter_BUILD_STATIC_LIBS)
|
|||||||
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
|
||||||
|
|
||||||
# precomiled headers to speed up compilation
|
# precomiled headers to speed up compilation
|
||||||
target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
|
target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterscatter
|
* \ref JKQTPlotterscatter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -14,11 +15,7 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc,argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
|
|
||||||
JKQTPExampleApplication app(argc, argv);
|
JKQTPExampleApplication app(argc, argv);
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +30,7 @@ int main(int argc, char* argv[])
|
|||||||
auto colYInserter=ds->backInserter(columnY);
|
auto colYInserter=ds->backInserter(columnY);
|
||||||
|
|
||||||
// 3. now we create data for a simple plot (a sine curve with random noise)
|
// 3. now we create data for a simple plot (a sine curve with random noise)
|
||||||
std::default_random_engine generator;
|
std::default_random_engine generator(123);
|
||||||
std::normal_distribution<double> distribution(0,0.5);
|
std::normal_distribution<double> distribution(0,0.5);
|
||||||
const int Ndata=100;
|
const int Ndata=100;
|
||||||
for (int i=0; i<Ndata; i++) {
|
for (int i=0; i<Ndata; i++) {
|
||||||
|
@ -13,13 +13,13 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
|
||||||
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# precomiled headers to speed up compilation
|
# precomiled headers to speed up compilation
|
||||||
|
@ -94,7 +94,7 @@ int main(int argc, char* argv[])
|
|||||||
```
|
```
|
||||||
The result looks like this:
|
The result looks like this:
|
||||||
|
|
||||||
![jkqtplotter_simpletest1](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/jkqtplotter_simpletest1.png)
|
![simpletest](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/simpletest.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,27 +4,18 @@
|
|||||||
* \ref JKQTPlotterSimpleTest
|
* \ref JKQTPlotterSimpleTest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc,argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
|
||||||
|
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
@ -61,7 +52,7 @@ int main(int argc, char* argv[])
|
|||||||
plot.zoomToFit();
|
plot.zoomToFit();
|
||||||
|
|
||||||
// show plotter and make it a decent size
|
// show plotter and make it a decent size
|
||||||
plot.getPlotter()->setPlotLabel(QObject::tr("Graph Title"));
|
plot.getPlotter()->setPlotLabel(QObject::tr("Simple Test"));
|
||||||
plot.show();
|
plot.show();
|
||||||
plot.resize(600,400);
|
plot.resize(600,400);
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,16 +4,13 @@
|
|||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
#include "speedtestplot.h"
|
#include "speedtestplot.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterSpeedTest
|
* \ref JKQTPlotterSpeedTest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include "speedtestplot.h"
|
#include "speedtestplot.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
#include "jkqtcommon_statistics_and_math/jkqtpstatisticstools.h"
|
#include "jkqtcommon_statistics_and_math/jkqtpstatisticstools.h"
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterStackedBarChart
|
* \ref JKQTPlotterStackedBarChart
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -103,12 +104,8 @@ void addGraph(JKQTPlotter& plot, bool swapXY) {
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
JKQTPlotter plotV;
|
JKQTPlotter plotV;
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterSpecialStepLinePlot
|
* \ref JKQTPlotterSpecialStepLinePlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterSpecialStepLinePlot
|
* \ref JKQTPlotterSpecialStepLinePlot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterBoxplotStyling
|
* \ref JKQTPlotterBoxplotStyling
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpboxplot.h"
|
#include "jkqtplotter/graphs/jkqtpboxplot.h"
|
||||||
@ -12,12 +13,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS test_styling.ui )
|
set(UIS test_styling.ui )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -1,17 +1,14 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "test_styling.h"
|
#include "test_styling.h"
|
||||||
#include "jkqtplotter/jkqtplotterstyle.h"
|
#include "jkqtplotter/jkqtplotterstyle.h"
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// you can set the system-wide default style properties early on
|
// you can set the system-wide default style properties early on
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterSymbolsErrors
|
* \ref JKQTPlotterSymbolsErrors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -14,12 +15,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
@ -13,6 +13,7 @@ set(RESOURCES )
|
|||||||
set(UIS )
|
set(UIS )
|
||||||
|
|
||||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||||
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
||||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||||
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
if(JKQtPlotter_BUILD_STATIC_LIBS)
|
||||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* \ref JKQTPlotterSymbolsAndStyles
|
* \ref JKQTPlotterSymbolsAndStyles
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "jkqtpexampleapplication.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
#include "jkqtplotter/graphs/jkqtpscatter.h"
|
||||||
@ -13,12 +14,8 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
JKQTPAppSettingController highDPIController(argc, argv);
|
||||||
|
JKQTPExampleApplication app(argc, argv);
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
||||||
#endif
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
// 1. create a plotter window and get a pointer to the internal datastore (for convenience)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user