Originally Posted by high_flyer Qt Code: Switch view void OpenFileDialog::populateProperties( const QString selected ){ qDebug()<<selected; //std::string sname = selected.toStdString( ); //char *filename = strdup( sname.c_str( ) );} void OpenFileDialog::populateProperties( const QString selected ) { qDebug()<<selected; //std::string sname = selected.toStdString( ); //char *filename = strdup( sname.c_str( ) ); } To copy to clipboard, switch view to plain text mode It prints out the filename I have selected, which is what I would expect it to print.
void OpenFileDialog::populateProperties( const QString selected ){ qDebug()<<selected; //std::string sname = selected.toStdString( ); //char *filename = strdup( sname.c_str( ) );}
void OpenFileDialog::populateProperties( const QString selected ) { qDebug()<<selected; //std::string sname = selected.toStdString( ); //char *filename = strdup( sname.c_str( ) ); }
Forum Rules
Bookmarks