Thanks Volker for your answer. I'm trying to create this backup using osql.exe application that is delivered with MSDE2000 and QProcess.
Here's the code snippet:
@
QProcess *dbBackupProcess = new QProcess();
QStringList args; args << "-Uuser" << "-Ppassword" << "-Sdomain\SQLinstance" << "-Q "BACKUP DATABASE dbName TO DISK = 'E:\backupName.bak'"";
dbBackupProcess->start("osql.exe", args);
@
This unfortunately doesn't work. What am I doing wrong?
Below command ran from the command prompt works good:
@osql.exe -Uuser -Ppassword -Sdomain\SQLinstance -Q "BACKUP DATABASE dbName TO DISK = 'E:\backupName.bak'"@
Edit: Okay, never mind. I'm finally getting somewhere. Will post an update soon.
Edit#2: I guess I solved it:
@
QString command = "osql.exe -UuserName -Ppassword -Sdomain\SQLinstance -Q "BACKUP DATABASE dbName TO DISK = 'E:\backupName.bak'"";
int exitCode = QProcess::execute(command);
@
Even i tried with all exitstatus, but no luck.
Finally i have used a batch file with WMIC command inside the batch file. now its working fine.
@
QProcess *process = new QProcess();
process->start( "executer.bat" ); // which contains WMIC Path Win32_COMPUTERSYSTEM get Manufacturer,Model /FORMAT:list
process->closeWriteChannel();
if( process->waitForFinished() )
{
qDebug() << "Succeed: ";
QString sResult = QString( process->readAllStandardOutput() ).trimmed();
process->close();
if( !sResult.isEmpty() )
return sResult.split("\n");
}
else
{
qDebug() << "Failed: " << process->errorString();
process->close();
return QStringList();
}
@
You have best chances, if you open a suggestion on the public "bug tracker":https://bugreports.qt-project.org/. Please have a look whether there's already a ticket open on that issue.
Thank you. tried this option, the shift is there, but not as what I would like to ... Why do not you apply that style that I would like ... I will continue to have to deal with the file QSS.
Hi,
As I understand it, each widget handles the cursor as the mouse moves over the widget. Therefore, you'd have to make sure each widget checks the mode you're in and change the displayed 'indicator' as you want it.
Hope that helps ;O)