User talk:Andynuc: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
// | // | ||
How can i get the directory path by filebrowser_widget1 | How can i get the directory path by filebrowser_widget1? | ||
Thanks very much! My E-mail is xulin116@yahoo.com.cn | Thanks very much! | ||
My E-mail is xulin116@yahoo.com.cn |
Latest revision as of 17:56, 25 November 2007
I am working with KWWidgets.I want to get the directory path when the user select directory by vtkKWFileBrowserDialog.But i failed, I only get the file path. I don't why. How can i get the directory path by vtkKWFileBrowserDialog?
// this is my code. I don't know what's the trouble
vtkKWFileBrowserDialog *filebrowser_widget1 = vtkKWFileBrowserDialog::New(); filebrowser_widget1->SetApplication(app); filebrowser_widget1->Create(); filebrowser_widget1->MultipleSelectionOn(); index=menu1->AddCommand("&Open File", filebrowser_widget1, "Invoke"); filebrowser_widget1->OK();
//
How can i get the directory path by filebrowser_widget1? Thanks very much! My E-mail is xulin116@yahoo.com.cn