PDA

View Full Version : Designer & functionparameters



chaimar
27th March 2006, 10:46
Hi,
I have a problem with creating the function that I want, with a default-valued parameter, like this:

setMode(int m, bool s = false)
I have to use the Designer to make this function, because the whole class is a .ui.h-file.
When I try to create this function private it's ok until I run NMAKE(UIC), then the Designer change the function to a public slot. In the ui.h-file the function appears right, but it's not in the .h-file and will of course not compile.

Is there someone who have had a similar problem and know what to do?

Best regards
Chaimar...:)

zlatko
27th March 2006, 11:53
Just remark:
Dont want decline from using ui.h files? With subclassing method ui programming your problem will be solved ;)