c++ - QwtPlot automatically resizes during AutoScale -



c++ - QwtPlot automatically resizes during AutoScale -

i'm using libqwt-6.1.1 display variable info in qwtplot element (as histogram) using auto scale y-axis. depending on actual info , number of tics, autoscale-run considers reasonable, minimum height of whole qwtplot element increases. kills whole layout design , makes window larger screen.

now 2 questions:

1) how can prevent qwtplot beingness automatically enlarged?

2) how minimum size calculation work? (i got lost somewhere in qwtplotlayout::activate() while trying follow calculation steps.)

finally, solution simpler expected ...

overloading qwtplot::sizehint() , qwtplot::minimumsizehint() (which virtual, fortunately) making both homecoming little constant value did trick, i.e.

qsize myplot::sizehint() const { homecoming qsize(100, 100); }

qsize myplot::minimumsizehint() const { homecoming qsize(100, 100); }

c++ qwt

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -