[Qt-interest] Was it a syntax error ?

Andre Somers andre at familiesomers.nl
Thu Sep 23 15:59:27 CEST 2010


  Op 23-9-2010 15:46, Aaron Lewis schreef:
> Hi,
> 	Playing with qt 4.6.3 with qtcreator 1.3.1 ,
>
>      connect(ui->rangeRadio,SIGNAL(clicked(bool)),
>          this,SLOT(setMode( !bool )));
>
>     Am i making something wrong here ? got red lines below texts ..
Yes, this is wrong. The !bool is invalid.
Bool is not a variable, it is a type name.

André




More information about the Qt-interest-old mailing list