Hello!

Somebody, please, tell me why i'm getting the following error message when i try to run my program:
Qt Code:
  1. #include <QFileDialog>
  2. #include <QString>
  3. //...code...
  4. void MyData::on_openButton_clicked( )
  5. {
  6. QString filePath = QFileDialog::getOpenfileName(this, tr("Open File"), "D:/Texts/", tr("Text Files (*.txt)"));
  7. //...rest of the code
  8. }
To copy to clipboard, switch view to plain text mode 
D:\Programming\C-C++\Qt\Windows\mydata.cpp:43: error: 'getOpenfileName' is not a member of 'QFileDialog'
QString filePath = QFileDialog::getOpenfileName(this, tr("Open File"), "D:/Texts/", tr("Text Files (*.txt)"));
^
Thanks!