Re: scrollzoom and margin
Brought to you by:
rathmann
From: Gerard V. <ger...@gr...> - 2004-11-21 12:14:48
|
Hi Veronique, > I 'll send you a zip with files if this can help to see what is wrong in my code The extra files ui-generated files are still not sufficient to compile your application: [packer@slow envoig]$ make CXX='ccache g++' ccache g++ -c -pipe -fno-exceptions -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include/qwt -I/usr/lib/qt3//include -Imoc/ -o obj/CdQ2dVisuDialog.o CdQ2dVisuDialog.cpp In file included from CdQ2dVisuDialog.cpp:7: CdQ2dVisuDialog.h:3:9: warning: #pragma once is obsolete In file included from CdQ2dVisuDialog.cpp:8: CdQ2dVisuPlot.h:21: error: syntax error before `/' token CdQ2dVisuPlot.h:95: error: `CdBool' was not declared in this scope CdQ2dVisuPlot.h:95: error: syntax error before `)' token CdQ2dVisuPlot.h:101: error: syntax error before `)' token CdQ2dVisuPlot.h:185: error: 'CdFloat' is used as a type, but is not defined as a type. CdQ2dVisuPlot.h:186: error: 'CdFloat' is used as a type, but is not defined as a type. CdQ2dVisuPlot.h:192: error: field `mCompleteProfile' has incomplete type CdQ2dVisuPlot.h:193: error: field `mSimplifiedProfile' has incomplete type CdQ2dVisuPlot.h:232: error: `CdFloat' was not declared in this scope CdQ2dVisuPlot.h:232: error: syntax error before `)' token CdQ2dVisuDialog.cpp:10:23: CdProfile.h: No such file or directory CdQ2dVisuDialog.cpp: In constructor `CdQ2dVisuDialog::CdQ2dVisuDialog(QWidget*, const char*, bool, unsigned int)': CdQ2dVisuDialog.cpp:42: error: `mqwtSlider' undeclared (first use this function) CdQ2dVisuDialog.cpp:42: error: (Each undeclared identifier is reported only once for each function it appears in.) CdQ2dVisuDialog.cpp: In member function `void CdQ2dVisuDialog::setCompleteProfile(const CdProfile&, const char*)': CdQ2dVisuDialog.cpp:86: error: `pName' undeclared (first use this function) CdQ2dVisuDialog.cpp:86: error: syntax error before `__null' CdQ2dVisuDialog.cpp:83: warning: unused parameter `const char*pName' CdQ2dVisuDialog.cpp:156:2: warning: no newline at end of file make: *** [obj/CdQ2dVisuDialog.o] Error 1 [packer@slow envoig]$ The next time you send something you should make sure that it compiles. Also would it be better to modify for example the simple_plot example to illustrate the problem (really your example should be as focused as possible). Also it is important to say which version of Qwt you are using (first thing is to reproduce your bug) and also your operating system (less important). See: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html http://www.catb.org/~esr/faqs/smart-questions.html Nevertheless, I have some idea: what version of Qwt are you running? If you are anything earlier than Qwt-4.2.0rc2, you may be suffering from this problem: http://sourceforge.net/mailarchive/message.php?msg_id=9046792 This bug has been fixed in later versions. If your problem still persists with Qwt-4.2.0: try to make your problem example as small as possible (I think it can be less than 200 lines, if we do not count scrollbar.h and scrollbar.cpp) See: http://sourceforge.net/mailarchive/forum.php?thread_id=5581230&forum_id=4276 for a good request for help (your problem is more complicated, but ..) Gerard |