[Ctk-developers] Add Ctk Plugin into Qt designer

Kahei Lok lokkahei.uniyccc4 at gmail.com
Fri Oct 18 17:26:15 UTC 2013


Daer Julien,

   I make it. I cmake ctk again ,and this time I turn on
CTK_USE_QTTESTING,,and include the path "CTK-build/QtTesting-build/Release"
into PATH variable.

And, I also recmake VTK, with  VTK_USE_Chart adn VTK_USE_Charts ON.

I works now. Many thanks, Julien!

Cheers,
Ka Hei


2013/10/18 Julien Finet <julien.finet at kitware.com>

> It seems that QtTesting.dll is needed for CTKVisualizationVTKWidgetPlugin,
> so you need to add its path in the PATH environment too.
> Hth,
> Julien.
>
>
> On Thu, Oct 17, 2013 at 4:52 PM, Julien Finet <julien.finet at kitware.com>wrote:
>
>> Hi Kahei,
>> I would suggest you try to use Dependency Walker<http://www.dependencywalker.com/> in
>> order to identify when DLL is missing in the PATH to correctly load
>> CTKVisualizationVTKWidgetPlugin.
>> Just tomake sure, you did prefix "CTK-build/VTK-build/bin/Release" with
>> the path of CTK on your machine, right ?
>> (for me it is "e:\work\CommonTK\CTK-build\VTK-build\bin\Release")
>>
>> Julien.
>>
>>
>> On Thu, Oct 17, 2013 at 11:58 AM, Kahei Lok <lokkahei.uniyccc4 at gmail.com>wrote:
>>
>>> What I want is  CTKVisualizationVTKWidgetPlugin. I successful add
>>> CTKwidgetPlugin into Qt designer. However, CTKVisualizationVTKWidgetPlugin
>>> still cannot be added into Qt deisgner. I add  CTK-build/VTK-build/bin/Release
>>> into PATH, it still cannot.
>>>
>>>
>>> 2013/10/17 Julien Finet <julien.finet at kitware.com>
>>>
>>>> For CTKScriptingPythonWidgetsPlugins.dll, you also need to add the
>>>> PythonQt.dll (in CTK-build/PythonQt-build/...)path into PATH.
>>>> You might also need to add the QtTesting.dll path (in
>>>> CTK-build/QtTesting-build/...) as well.
>>>>
>>>>
>>>> On Thu, Oct 17, 2013 at 11:09 AM, Kahei Lok <
>>>> lokkahei.uniyccc4 at gmail.com> wrote:
>>>>
>>>>> I include the path into the environment, but still cannot add into the
>>>>> qt designer. Is it still missing something?
>>>>>
>>>>>
>>>>> 2013/10/17 Julien Finet <julien.finet at kitware.com>
>>>>>
>>>>>> I'm glad to hear it works for you.
>>>>>> For CTKVisualizationVTKWidgetsPlugins to load, you need to add the
>>>>>> CTK-build/VTK-build/bin/Release path (the folder that contains the
>>>>>> VTKCommon.dll and the other VTK dlls) to the PATH environment variable.
>>>>>>  Julien.
>>>>>>
>>>>>>
>>>>>> On Thu, Oct 17, 2013 at 10:34 AM, Kahei Lok <
>>>>>> lokkahei.uniyccc4 at gmail.com> wrote:
>>>>>>
>>>>>>> Dear Julien,
>>>>>>>
>>>>>>>     I find the problem is the debug/ release version of Qt library
>>>>>>> mix together. I try to separate them into Debug/ Release folder. Then it
>>>>>>> works. But I am still can not load the  CTKVisualizationVTKWidgetPlugin.dll.
>>>>>>> [image: 內置圖片 1]
>>>>>>>
>>>>>>> What do I miss for this CTKVisualizationVTKWidgetPlugin.dll?
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20131019/aa7511de/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after add QT_PLUGIN_PATH.png
Type: image/png
Size: 56554 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20131019/aa7511de/attachment.png>


More information about the Ctk-developers mailing list