QT Error with Twain Data Source
-
@mrjj said in QT Error with Twain Data Source:
What do you compile it with ?
I m compiling it with Visual Studio 2008 and not using QT Creator. Can you please guide me where i can get moc tool and ui tool?
Hi
They are included but visual studio knows nothing about it.
Often a plugin for VS is used to help make this happen.
Not sure there is plugin for 2008.
2013 seems to be the oldest
https://download.qt.io/official_releases/vsaddin/
but it seems to have existed
https://forum.qt.io/topic/5722/solved-how-generate-moc-files-automatically-using-visual-studio-2008so maybe i just need more coffee ;)
also this seems the newest Qt that works with vs2008
https://download.qt.io/official_releases/qt/4.8/4.8.7/ -
Thanks for your help. I have download and use said version of QT. However it dont let me configure this project. Its complaining abut the Kit not found. Also when i go to configure default Kit, QT version is ot populating. Can you please llo at attached and help me?
Thanks
Bhim -
Hi
you installed
qt-opensource-windows-x86-vs2008-4.8.7.exe ?
and you had vs 2008 already installed?what does it list in Qt versions tab?
-
Yes, i installed and used qt-opensource-windows-x86-vs2008-4.8.7.exe
It list only None in QT Version tab.
I had vs 2008 also already installed.
Please help.
-
Also this is what i have installed, can this be the culprit?
Meantime i will also try on a machine where vs2008 is not installed.
-
Hi ,
Thanks for your help. I m able to open and configure the project now. But getting below error when i build it. Can you please have a look and help.
-
Below is the content of pro file
unix {
TEMPLATE = subdirs
VERSION = 1.0
DEFINES += UNIX
}SUBDIRS = src
I have also shared entire project at below location for you.
https://drive.google.com/drive/folders/1gj69Kh7Xy8-p91uE3QUao673wqxoHidx?usp=sharing
-
Below is the content of pro file
unix {
TEMPLATE = subdirs
VERSION = 1.0
DEFINES += UNIX
}SUBDIRS = src
I have also shared entire project at below location for you.
https://drive.google.com/drive/folders/1gj69Kh7Xy8-p91uE3QUao673wqxoHidx?usp=sharing
-
Thanks It much better now. Though i am still getting lot of errors but these are datatype error and seems like code specific.
Thanks a lot for your help.
Bhim
-
This is the latest sample they have. With this i m getting below error , would you be able to help with this one as well?
I know how to take care of these in VS but not in QT.
@bhim
Well Qt is just a normal c++ LIB
and those are normal windows API calls so fix them like you normal would.
seems to be unicode related.
Didnt it later become common to put _TCHAR or something in front ?
or use wchar_t* and not char * ?
maybe you can just use the A version of the API and not W version -
Hi
I wondered if
https://github.com/twain/twain-samples
is something else than the twain you try ? -
It did not work. However i am able to resolve most of the error for data type conversion. I am now stuck at below, i am not able to go to definition\declaration of this method to make any change. I know how to do it in Visual Studio but not in QT. Can you please help