Originally Posted by
high_flyer
The 'example' in the code!
Just look in there.
void QtTwainScan::scan()
{
if (!m_pTwain->initTwain())
qWarning("initTwain() call not successful!");
else
if (!m_pTwain->selectSource())
qWarning("selectSource() call not successful!");
else
if (!m_pTwain->acquire())
qWarning("acquire() call not successful!");
}
void QtTwainScan::scan()
{
if (!m_pTwain->initTwain())
qWarning("initTwain() call not successful!");
else
if (!m_pTwain->selectSource())
qWarning("selectSource() call not successful!");
else
if (!m_pTwain->acquire())
qWarning("acquire() call not successful!");
}
To copy to clipboard, switch view to plain text mode
Happy new year.
I have tried this (with QtCreator or the CLI) :
#include <QApplication>
#include "qtwain.h"
int main(int argc, char **argv)
{
QTwain m_pTwain;
if (!m_pTwain.initTwain())
qWarning("initTwain() call not successful!");
else
if (!m_pTwain.selectSource())
qWarning("selectSource() call not successful!");
else
if (!m_pTwain.acquire())
qWarning("acquire() call not successful!");
return app.exec();
}
#include <QApplication>
#include "qtwain.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QTwain m_pTwain;
if (!m_pTwain.initTwain())
qWarning("initTwain() call not successful!");
else
if (!m_pTwain.selectSource())
qWarning("selectSource() call not successful!");
else
if (!m_pTwain.acquire())
qWarning("acquire() call not successful!");
return app.exec();
}
To copy to clipboard, switch view to plain text mode
But I still have a segmentation error,
Have you ever have this bug ?
By advance,
Thanks
Bookmarks