PDA

View Full Version : what will be the coding for Menu->File->open



jyoti
9th November 2006, 12:32
hi all
i m working on QT4.2 on Mac
so can anyone help to solve out my query
i m attaching my form
when open get activated then a dialog to choose path for directory or file to open should be opened as normally a open function do....
same for save a dailog oshould open where we can choose a path to save a file.....as save operation do..

plz do tell me its coding
as soon as possible...

jacek
9th November 2006, 13:16
as soon as possible...
As soon as possible you should read about QFileDialog (especially about QFileDialog::getOpenFileName() and QFileDialog::getSaveFileName()).

PS. This has nothing to do with Qt Designer. Thread moved.

jyoti
10th November 2006, 06:30
thanks alot...i ws useful
can u plz tell for undo,cut, copy, paste
plz tell in coding part
as i m using textedit on menu window

void form1::mycut()
{
textEdit->
}
void form1::mycopy()
{

}
void form1::mypaste()
{

}

plz send reply as soon as possible

jacek
10th November 2006, 13:16
Please, don't post two unrelated questions in one thread. I've moved the rest of the posts about cut & paste here (http://www.qtcentre.org/forum/f-newbie-4/t-how-texteditcutcopy-paste-come-to-use-4359.html).