Hi,
i am trying to play with the "todo_list" example (https://github.com/rust-qt/examples/tree/master/widgets/todo_list) everything is working fine...but, if i try to add a "QFileDialog" or a "QMessageBox" to one of the slots, for instance :
#[slot(SlotNoArgs)]
unsafe fn on_add_clicked(self: &Rc<Self>) {
let filenames = QFileDialog::new();
filenames.get_open_file_names_4a(None, &qs("Open files"), &qs("./"), &qs("Text files (*.s2p)"));
}
then i get errors:
error[E0599]: no method named `get_open_file_names_4a` found for struct `QBox<QFileDialog>` in the current scope
63 | filenames.get_open_file_names_4a(None, &qs("Open files"), &qs("./"), &qs("Python/Text files (*.s2p)"));
| ----------^^^^^^^^^^^^^^^^^^^^^^
| | |
| | this is an associated function, not a method
| help: use associated function syntax instead: `QFileDialog::get_open_file_names_4a`
The "basic_form" examples uses a "QMessageBox" and everything works fine, so i assume that my problem is that i load the "Form" (QtDesigner ui file) with the ui_tools.
What i am doing wrong here?
I am trying to get it work since two days but until now i did not find the solution...
I thank you very much for your help in advance.
Best Regards.
Olivier.