|
From: Daniel J S. <dan...@ie...> - 2014-03-10 06:36:19
|
On 03/09/2014 04:47 PM, Daniel J Sebald wrote: > I'm in the > middle of programming this right now, so it would be good to know how it > should behave. I've placed an initial version Qt window size retention on the patch tracker: http://sourceforge.net/p/gnuplot/patches/663/ I left the behavior of the window sizing as is for now, and there are still a couple bugs associated with the size retention. However, the important thing is the conceptual changes, and I'd like to know if you think it is an improvement. Dan PS: One comment for anyone interested in Qt programming. Try to avoid any use of dynamic_cast<>, i.e., a glorified form of casting for Qt. If you think you can't avoid using that syntax, then try harder. :-) The reason is that whenever that syntax is necessary, one is almost assured to be programming Qt in a way that doesn't fit its paradigm and will prove to be a problem down the road. One is better off approaching things in a different way. With Qt it usually takes a little trial and error to find the best setup, but once it's found things fall in place pretty nicely. |