I need to use the code in windows based QT ( C ++)
I am not sure how to use your code in that.Is it forlinux .
Where will I write in the code, Presently I open the file with following code
void steg::showdatafile()/*** THIS MODULE SHOWS THE DATA FILE *****/
{
if(QFile::exists(ui.
datalineEdit->text
())) {
s << "url.dll,FileProtocolHandler" << ui.datalineEdit->text() ;
p.
startDetached(QString("rundll32.exe") , s
);
}
else
tr("<p><b> ERROR IN DISPLAYING DATA FILE.</b>"
"</p><p><b>CHOOSE THE DATA FILE AND MAKE SURE THE FILE EXISTS OR CHOOSE SEPARATE FILE</b>"));
}
void steg::showdatafile()/*** THIS MODULE SHOWS THE DATA FILE *****/
{
if(QFile::exists(ui.datalineEdit->text()))
{
QProcess p;
QStringList s;
s << "url.dll,FileProtocolHandler" << ui.datalineEdit->text() ;
p.startDetached(QString("rundll32.exe") , s );
}
else
QMessageBox::warning(this, tr("FILE ERROR"),
tr("<p><b> ERROR IN DISPLAYING DATA FILE.</b>"
"</p><p><b>CHOOSE THE DATA FILE AND MAKE SURE THE FILE EXISTS OR CHOOSE SEPARATE FILE</b>"));
}
To copy to clipboard, switch view to plain text mode
that is ----I am using FileProtocolHandler.But it is going to treat my file as text file where as my requirement is as told above.
Bookmarks