qtlinuxnewbie
10th February 2010, 13:08
hi,
i have a QT project in Linux with 4 windows(corresponding .cpp..h etc.,).
i want to maintain a single Log file for all the 4 windows.
how can i do that?:confused::confused:
Actually i tried creating the file and opening in main.cpp but it cannot be used in other .cpp files,
how can i use this file pointer in other windows. i tried with extern keyword but it is not working.
Thanks in advance.
i have a QT project in Linux with 4 windows(corresponding .cpp..h etc.,).
i want to maintain a single Log file for all the 4 windows.
how can i do that?:confused::confused:
Actually i tried creating the file and opening in main.cpp but it cannot be used in other .cpp files,
how can i use this file pointer in other windows. i tried with extern keyword but it is not working.
Thanks in advance.