How to use storescp (dcmnet) with Qt framework?

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
e.can
Posts: 29
Joined: Tue, 2015-11-03, 14:40

How to use storescp (dcmnet) with Qt framework?

#1 Post by e.can »

Hi guys,

I am new in the DCMTK environment and I need some help configuring the storescp (dcmnet) module in Visual Studio 2012 (v11) and Qt. I've built the files using CMake, but I am not sure how to include the storescp (dcmnet) module in a new Qt project. Could someone please explain what I need to do in order to get the module working with my project?

I've read many articles about this subject, but I cannot find a clear explanation..

Thank you in advance :D

Engo

Robert Habrich
Posts: 1
Joined: Wed, 2015-11-04, 09:40

Re: How to use storescp (dcmnet) with Qt framework?

#2 Post by Robert Habrich »

Hi,

the storescp app is meant to be a self-contained application. You can use the CMake script to compile a storescp executable that you can than call from Qt using e.g. QProcess and the command line commands described here: http://support.dcmtk.org/docs/storescp.html

If you want to have more fine-grained control, you should take a look at the DcmSCP class http://support.dcmtk.org/docs-snapshot/classDcmSCP.html and implement your own C-STORE SCP.

Regards,
Robert

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: How to use storescp (dcmnet) with Qt framework?

#3 Post by Jan Schlamelcher »

So by Qt project, you mean that you are using qmake? Sorry, I don't know about that, as I always used CMake. However, in general, you will have to set include paths and library locations in your Qt project files that point to your compiled DCMTK and select the required libraries that need to be linked. You may have a look at this graph to understand DCMTK's library dependencies.

e.can
Posts: 29
Joined: Tue, 2015-11-03, 14:40

Re: How to use storescp (dcmnet) with Qt framework?

#4 Post by e.can »

Jan Schlamelcher wrote:So by Qt project, you mean that you are using qmake? Sorry, I don't know about that, as I always used CMake. However, in general, you will have to set include paths and library locations in your Qt project files that point to your compiled DCMTK and select the required libraries that need to be linked. You may have a look at this graph to understand DCMTK's library dependencies.
I've used CMake to generate the files. What files do I need to include into my Qt project in order to setup a scp server? Do I need to create a DcmSCP instance?

e.can
Posts: 29
Joined: Tue, 2015-11-03, 14:40

Re: How to use storescp (dcmnet) with Qt framework?

#5 Post by e.can »

I can't rid of multiple errors. Could you please take a look at my question (StackOverflow):

http://stackoverflow.com/questions/3364 ... qt-creator

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest