Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Replot in Qwt Zoomer(QWT)
Forum Updated to NodeBB v4.3 + New Features

Replot in Qwt Zoomer(QWT)

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 1 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ruzik
    wrote on last edited by
    #1

    Hellow!, i have this code:
    @ QwtPlotZoomer* zoomer = new QwtPlotZoomer( canvas(),true);
    zoomer->setRubberBandPen( QColor( Qt::black ) );
    zoomer->setTrackerPen( QColor( Qt::black ) );
    zoomer->setMousePattern( QwtEventPattern::MouseSelect2,
    Qt::RightButton, Qt::ControlModifier );
    zoomer->setMousePattern( QwtEventPattern::MouseSelect3,
    Qt::RightButton );
    this->setAutoReplot(true);
    replot();@
    In first i have this, because i called replot():
    !http://hostingkartinok.com/image/01201109/ad7ef8fd02ec69e63af550639901254b.png(1)!
    But if i pressed right mouse button or select some areas and back to start area by right mouse button, i get that:
    !http://hostingkartinok.com/image/01201109/7e25e354962e7dcde809012a402ef24e.png(2)!
    I try use it:
    @zoomer->setZoomBase(this->rect());@
    @plot->setAutoReplot(true);@
    But nothing is working
    In advance many thanks for your help!

    [edit : fixed typo in title, Eddy]

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Ruzik
      wrote on last edited by
      #2

      I try it, but it is dont work too:
      @connect(zoomer, SIGNAL(zoomed(const QRectF&)), this, SLOT(replot()));@
      But slot is calling, i tested it

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved