Qt-interest Archive, December 2006
how do i declare templates?
Message 1 in thread
hello everyone, i am new to templates and don't know exactly how to put the
necessary template declarations.
because if i try to put template <clas T> in 'forward declaraions', in the
.ui/myForm.h file it stores it as template <class T>; without allowing me to
avoid having the ";".
i am using qt 3.3.6 that came with slackware 10.2.
thank you for your help.
nass
Message 2 in thread
Hi Nass,
perhaps you read a fine C++ book. This is a Qt mailing list and not a
general C++ forum.
For example read "The C++ programming language" from Bjarne Stroustrup.
Regards,
Falko
--- Original-Nachricht ---
Absender: )\(@sS
Datum: 18.12.2006 16:57
> hello everyone, i am new to templates and don't know exactly how to
> put the necessary template declarations.
> because if i try to put template <clas T> in 'forward declaraions', in
> the .ui/myForm.h file it stores it as template <class T>; without
> allowing me to avoid having the ";".
> i am using qt 3.3.6 that came with slackware 10.2.
> thank you for your help.
> nass
--
[ signature omitted ]
Message 3 in thread
I know there is syntax colouring in the text edit but I am looking for
a like wise feature in a line edit.
I just don't want to re-invent the wheel in case it is already available.
-- G
--
[ signature omitted ]
Message 4 in thread
Falko Buttler schrieb:
> Hi Nass,
>
> perhaps you read a fine C++ book. This is a Qt mailing list and not a
> general C++ forum.
> For example read "The C++ programming language" from Bjarne Stroustrup.
>
> Regards,
> Falko
...while Stroustrup is tough stuff for a beginner, simply try google for
"template tutorial c++"
http://www.google.de/search?hl=de&q=template+tutorial+c%2B%2B&btnG=Suche&meta=
And try some of the results, even the first looked understandable already.
(This strategy helps in several cases ;-) )
Have Fun
Daniel
>
> --- Original-Nachricht ---
> Absender: )\(@sS
> Datum: 18.12.2006 16:57
>> hello everyone, i am new to templates and don't know exactly how to
>> put the necessary template declarations.
>> because if i try to put template <clas T> in 'forward declaraions',
>> in the .ui/myForm.h file it stores it as template <class T>; without
>> allowing me to avoid having the ";".
>> i am using qt 3.3.6 that came with slackware 10.2.
>> thank you for your help.
>> nass
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]