void FormEphem::on_btnAdd_clicked() { QString fn = QFileDialog::getOpenFileName( this, tr("Select the tle file"), ".", tr("Text files (*.txt *.tle)")); if ( !fn.isEmpty() ) { if(opts.addTleFile(fn)) { sats->ReloadList(); showAvailSat(); } } foreach (const QString &str, opts.tlelist) { qDebug() << "---> " + str; } }