You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, April 25th 2012, 6:51am

to display output of functions in c++ class and file I/O

HI
im new to qt and building a GUI for a fully running program in c++. im using qt 4.7 on ubuntu 10.10
now wt i wanna kno is...
i hav a function in graph class which has a QOBJECT macro...
how do i display the various cout statements FROM THE FUNCTION in textedit box in mainwindow..and also in dialog form presently they are goin to the application RUN console... example
in function i have:-

cout<<char*;
cout<<int value...to be displayed in mainwindow..

SECONDLY.....i
hav taken filename AS INPUT FROM MAINWINDOW AND DIALOG FORM...how to
send them to a function in GRAPH CLASS which takes filename input as
char*...DOTOFILE(CHAR*,NUMBER)
.


AND DO I HAV TO HARD CODE THE INPUT FILE PATHS...what if different
users hav files at different locations (home/desktop) on thier pc...

pls answer these when possible :)
thanx