From 7d3714083702e4602f3e5789cc3661e0ff10f66f Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Wed, 18 Sep 2024 14:37:46 +0200 Subject: [PATCH] NEW: added example which shows how to bin a QScrollBar to a JKQTPlotter --- doc/CMakeLists.txt | 1 + doc/dox/examples_and_tutorials.dox | 3 + doc/dox/whatsnew.dox | 3 +- examples/CMakeLists.txt | 1 + examples/ui_bind_scrollbar/CMakeLists.txt | 28 +++ examples/ui_bind_scrollbar/README.md | 90 ++++++++ .../ui_bind_scrollbar/ui_bind_scrollbar.cpp | 198 ++++++++++++++++++ screenshots/ui_bind_scrollbar.png | Bin 0 -> 21897 bytes screenshots/ui_bind_scrollbar_small.png | Bin 0 -> 9102 bytes screenshots/ui_bind_scrollbar_win01.png | Bin 0 -> 25693 bytes screenshots/ui_bind_scrollbar_win01_small.png | Bin 0 -> 11205 bytes 11 files changed, 323 insertions(+), 1 deletion(-) create mode 100644 examples/ui_bind_scrollbar/CMakeLists.txt create mode 100644 examples/ui_bind_scrollbar/README.md create mode 100644 examples/ui_bind_scrollbar/ui_bind_scrollbar.cpp create mode 100644 screenshots/ui_bind_scrollbar.png create mode 100644 screenshots/ui_bind_scrollbar_small.png create mode 100644 screenshots/ui_bind_scrollbar_win01.png create mode 100644 screenshots/ui_bind_scrollbar_win01_small.png diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e32ae0e1e8..57bd4e3c6c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -249,6 +249,7 @@ if(JKQtPlotter_BUILD_EXAMPLES) paramvectorfield financialgraphs geo_bezier + ui_bind_scrollbar ) diff --git a/doc/dox/examples_and_tutorials.dox b/doc/dox/examples_and_tutorials.dox index 0f23b6c258..31a3ce543f 100644 --- a/doc/dox/examples_and_tutorials.dox +++ b/doc/dox/examples_and_tutorials.dox @@ -207,6 +207,9 @@ All test-projects are Qt-projects that use qmake to build. You can load them int \image html jkqtplotter_test_user_interaction_small.gif \subpage JKQTPlotterUserInteraction different possibilities of user-interaction in JKQtPlotter + \image html ui_bind_scrollbar_small.png + \subpage JKQTPlotterUIScrollbar + using QScrollBar together with JKQtPlotter diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index e105ba224d..26d41f0ed8 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -138,7 +138,8 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • NEW: autoscaling for barcharts works now, also when stacked and unstacked charts are combined in one plot
  • NEW: JKQTPGeoBezierCurve for drawing bezier curves of degree 1-4 (+example \ref JKQTPlotterGeometricBezier)
  • NEW: added JKQTPCoordinateAxis::setRangeFixed() which disables changing the axis range (and thus the zoom)
  • -
  • NEW: add JKQTPCoordinateAxis::getMin() and JKQTPCoordinateAxis::getMax() getters
  • +
  • NEW: added JKQTPCoordinateAxis::getMin() and JKQTPCoordinateAxis::getMax() getters
  • +
  • NEW: added example \ref JKQTPlotterUIScrollbar
  • JKQTMathText: