help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-cgicc] cgicc and Qt


From: Frank Büttner
Subject: Re: [help-cgicc] cgicc and Qt
Date: Wed, 25 Mar 2009 13:20:38 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Hello Igor,

yes , I search something like in the example,
but this will not work.
I get this error when I try to compile it:

error: no match for 'operator<<' in 'ts <<
cgicc::HTMLBooleanElement<cgicc::aTag>(((const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)(&
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>(((const char*)"Send Mail"), ((const std::allocator<char>&)((const
std::allocator<char>*)(&
std::allocator<char>()))))))).cgicc::HTMLBooleanElement<cgicc::aTag>::<anonymous>.cgicc::HTMLElement::set(((const
std::string&)(& std::basic_string<char, std::char_traits<char>,
std::allocator<char> >(((const char*)"href"), ((const
std::allocator<char>&)((const std::allocator<char>*)(&
std::allocator<char>())))))), ((const std::string&)(&
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>(((const char*)"mailto:address@hidden";), ((const
std::allocator<char>&)((const std::allocator<char>*)(&
std::allocator<char>())))))))'

This was my test code

QString Test;
QTextStream ts(&Test,QIODevice::WriteOnly);
ts << cgicc::a("Send Mail").set("href","mailto:address@hidden";);

Thanks for your help.

Igor schrieb:
> Hello Frank,
> 
> Wednesday, March 25, 2009, 11:01:26 AM, you wrote:
> 
> FB> Hello Steve,
> FB> I have look at the docu for the class.
> FB> But the doc say, that this is for input only,
> FB> but my problem is the output that must be go
> FB> into the QTextStream.
> 
>     cgicc knows nothing about the output, it is your application
>     that is responsible for what to do with the output cgicc produces.
>     You may want to put it to cout or QTextStream or whatever.
> 
>     QString str;
>     QTextStream ts( &str, IO_WriteOnly );
>     ts << cgicc::a("Send Mail").set("href", "mailto:address@hidden";);
> 
>     or you may try to redirect cout to QTextStream
> 
> 


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]