Here is the function. I deleted all of the rest of the commented code so you didn't have to see all my comments. It crashes when it tries to exit this function.
/************************
SLOTS
************************/
void OpenFileDialog
::populateProperties( const QString selected
) {
std::string sname = selected.toStdString( );
//char *filename = strdup( sname.c_str( ) );
}
/************************
SLOTS
************************/
void OpenFileDialog::populateProperties( const QString selected )
{
std::string sname = selected.toStdString( );
//char *filename = strdup( sname.c_str( ) );
}
To copy to clipboard, switch view to plain text mode
Here is the connection statement inside my constructor
connect( this,
SIGNAL( currentChanged
( const QString ) ),
this,
SLOT( populateProperties
( const QString ) ) );
connect( this, SIGNAL( currentChanged( const QString ) ), this, SLOT( populateProperties( const QString ) ) );
To copy to clipboard, switch view to plain text mode
As far as the toAscii( ) call I will try that out here soon. Thanks for your help!
Bookmarks