{"id":44257,"date":"2025-06-18T09:33:04","date_gmt":"2025-06-18T01:33:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44257.html"},"modified":"2025-06-18T09:33:04","modified_gmt":"2025-06-18T01:33:04","slug":"qt%e4%b8%ad%e4%bd%bf%e7%94%a8qvtkopenglnativewidget%e6%98%be%e7%a4%ba%e4%b8%89%e7%bb%b4%e5%9b%be%e5%bd%a2%ef%bc%88vtk9-x%e4%bb%a5%e4%b8%8a%e7%89%88%e6%9c%ac%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44257.html","title":{"rendered":"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09"},"content":{"rendered":"<h2>1.VTK \u7248\u672c\u6f14\u8fdb\u4e0eqt\u63d2\u4ef6\u652f\u6301\u53d8\u5316<\/h2>\n<ul>\n<li>VTK \u2264 7.x&#xff1a;\u5b98\u65b9\u63d0\u4f9b\u00a0<span style=\"color:#fe2c24\">QVTKWidget\u00a0\u63d2\u4ef6<\/span>&#xff0c;\u9700\u624b\u52a8\u5c06\u00a0QVTKWidgetPlugin.dll\/lib\u00a0\u653e\u5165 Qt Designer \u7684\u63d2\u4ef6\u76ee\u5f55\u00a01\u3002<\/li>\n<li>VTK 8.2 \u4e4b\u524d&#xff1a;\u63a8\u8350\u4f7f\u7528<span style=\"color:#fe2c24\">\u00a0QVTKOpenGLWidget<\/span>\u00a0\u3002<\/li>\n<li>VTK 8.2 \u53ca\u4e4b\u540e&#xff1a;\u5f15\u5165\u00a0<span style=\"color:#fe2c24\">QVTKOpenGLNativeWidget<\/span>&#xff0c;\u66ff\u4ee3\u65e7\u7248\u63d2\u4ef6\u00a0\u3002<\/li>\n<li>VTK 9.0&#043;&#xff1a;<span style=\"color:#fe2c24\">\u5f7b\u5e95\u79fb\u9664\u00a0QVTKWidget&#xff0c;\u4ec5\u4fdd\u7559\u00a0QVTKOpenGLNativeWidget<\/span>&#xff0c;<span style=\"color:#fe2c24\">\u4e0d\u518d\u63d0\u4f9b Qt Designer \u63d2\u4ef6<\/span>\u00a0\u3002<\/li>\n<li>\u4f7f\u7528QVTKOpenGLNativeWidget\u7684\u66f4\u52a0\u65b9\u4fbf&#xff0c;\u65e0\u9700\u5728Qt Designer\u63d2\u4ef6\u518d\u6dfb\u52a0\u76f8\u5e94\u7684\u63d2\u4ef6\u76ee\u5f55<\/li>\n<li>\u6b64\u5916\u65e0\u9700\u5728qt designer\u4e2d\u5728\u5c06widget\u63d0\u5347\u4e3aQVTKOpenGLNativeeWidget&#xff0c;<\/li>\n<li>\u4ee5\u4e0a\u4e24\u79cd\u65b9\u5f0f\u90fd\u4e0d\u4fbf\u4e8e\u4ee3\u7801\u7684\u79fb\u690d<\/li>\n<li>\u4f7f\u7528<span style=\"color:#0d0016\">QVTKOpenGLNativeWidget\u53ef\u4ee5\u76f4\u63a5\u5c06vtk\u663e\u793a\u7684\u7a97\u53e3\u521d\u59cb\u5316\u540e&#xff0c;\u76f4\u63a5\u901a\u8fc7<\/span><\/li>\n<li>qt addwidget\u63a5\u53e3\u6dfb\u52a0\u5230\u663e\u793a\u754c\u9762\u5373\u53ef\u3002<\/li>\n<\/ul>\n<h2>2.QVTKOpenGLNativeWidget\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>\u9996\u5148\u901a\u8fc7cmake\u914d\u7f6e\u6240\u793a\u5305\u542b\u6587\u4ef6\u4ee5\u53ca\u94fe\u63a5\u5e93<\/p>\n<h3>\u5305\u542b\u6587\u4ef6<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1241\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013300-6852174cb4b62.png\" width=\"2177\" \/><\/p>\n<h3>\u94fe\u63a5\u5e93<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1241\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013301-6852174de19cc.png\" width=\"2177\" \/><\/p>\n<p>\u94fe\u63a5\u5e93\u4e3b\u8981\u6587\u4ef6\u5982\u4e0b<\/p>\n<p>E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkGUISupportQt-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkInteractionWidgets-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingOpenGL2-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingHyperTreeGrid-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingUI-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkglew-9.3.lib opengl32.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingContext2D-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkIOImage-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkImagingCore-9.3.lib C:\\\\Qt\\\\5.15.2\\\\msvc2019_64\\\\lib\\\\Qt5OpenGL.lib C:\\\\Qt\\\\5.15.2\\\\msvc2019_64\\\\lib\\\\Qt5Widgets.lib C:\\\\Qt\\\\5.15.2\\\\msvc2019_64\\\\lib\\\\Qt5Gui.lib C:\\\\Qt\\\\5.15.2\\\\msvc2019_64\\\\lib\\\\Qt5Core.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingCore-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkFiltersSources-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkFiltersGeneral-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkFiltersCore-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonExecutionModel-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonDataModel-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonTransforms-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonMisc-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonMath-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkCommonCore-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtksys-9.3.lib ws2_32.lib dbghelp.lib psapi.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtktoken-9.3.lib E:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkkissfft-9.3.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib<\/p>\n<h3>\u9884\u7f16\u8bd1\u5b9a\u4e49<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"809\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013303-6852174f1b3bd.png\" width=\"1419\" \/><\/p>\n<p>WIN32 _WINDOWS NDEBUG kiss_fft_scalar&#061;double KISSFFT_DLL_IMPORT&#061;1 QT_OPENGL_LIB QT_WIDGETS_LIB QT_GUI_LIB QT_CORE_LIB QT_NO_DEBUG CMAKE_INTDIR&#061;&#034;RelWithDebInfo&#034;<\/p>\n<\/p>\n<h3>c&#043;&#043; \u4ee3\u7801<\/h3>\n<p>\/\/ SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen<br \/>\n\/\/ SPDX-License-Identifier: BSD-3-Clause<br \/>\n#include &lt;QVTKOpenGLNativeWidget.h&gt;<br \/>\n#include &lt;vtkActor.h&gt;<br \/>\n#include &lt;vtkDataSetMapper.h&gt;<br \/>\n#include &lt;vtkDoubleArray.h&gt;<br \/>\n#include &lt;vtkGenericOpenGLRenderWindow.h&gt;<br \/>\n#include &lt;vtkPointData.h&gt;<br \/>\n#include &lt;vtkProperty.h&gt;<br \/>\n#include &lt;vtkRenderer.h&gt;<br \/>\n#include &lt;vtkSphereSource.h&gt;<\/p>\n<p>#include &lt;QApplication&gt;<br \/>\n#include &lt;QDockWidget&gt;<br \/>\n#include &lt;QGridLayout&gt;<br \/>\n#include &lt;QLabel&gt;<br \/>\n#include &lt;QMainWindow&gt;<br \/>\n#include &lt;QPointer&gt;<br \/>\n#include &lt;QPushButton&gt;<br \/>\n#include &lt;QVBoxLayout&gt;<\/p>\n<p>#include &lt;cmath&gt;<br \/>\n#include &lt;cstdlib&gt;<br \/>\n#include &lt;random&gt;<\/p>\n<p>namespace<br \/>\n{<br \/>\n\/**<br \/>\n * Deform the sphere source using a random amplitude and modes and render it in<br \/>\n * the window<br \/>\n *<br \/>\n * &#064;param sphere the original sphere source<br \/>\n * &#064;param mapper the mapper for the scene<br \/>\n * &#064;param window the window to render to<br \/>\n * &#064;param randEng the random number generator engine<br \/>\n *\/<br \/>\nvoid Randomize(vtkSphereSource* sphere, vtkMapper* mapper, vtkGenericOpenGLRenderWindow* window,<br \/>\n  std::mt19937&amp; randEng);<br \/>\n} \/\/ namespace<\/p>\n<p>int main(int argc, char* argv[])<br \/>\n{<br \/>\n  QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());<\/p>\n<p>  QApplication app(argc, argv);<\/p>\n<p>  \/\/ main window<br \/>\n  QMainWindow mainWindow;<br \/>\n  mainWindow.resize(1200, 900);<\/p>\n<p>  \/\/ control area<br \/>\n  QDockWidget controlDock;<br \/>\n  mainWindow.addDockWidget(Qt::LeftDockWidgetArea, &amp;controlDock);<\/p>\n<p>  QLabel controlDockTitle(&#034;Control Dock&#034;);<br \/>\n  controlDockTitle.setMargin(20);<br \/>\n  controlDock.setTitleBarWidget(&amp;controlDockTitle);<\/p>\n<p>  QPointer&lt;QVBoxLayout&gt; dockLayout &#061; new QVBoxLayout();<br \/>\n  QWidget layoutContainer;<br \/>\n  layoutContainer.setLayout(dockLayout);<br \/>\n  controlDock.setWidget(&amp;layoutContainer);<\/p>\n<p>  QPushButton randomizeButton;<br \/>\n  randomizeButton.setText(&#034;Randomize&#034;);<br \/>\n  dockLayout-&gt;addWidget(&amp;randomizeButton);<\/p>\n<p>  \/\/ render area<br \/>\n  QPointer&lt;QVTKOpenGLNativeWidget&gt; vtkRenderWidget &#061; new QVTKOpenGLNativeWidget();g<\/p>\n<p>\/\/\u5c06\u751f\u6210\u7684QVTKOpenGLNativeWidget\u8bbe\u7f6e\u4e3amainwindow\u4e3b\u7a97\u53e3\u90e8\u5206<br \/>\n  mainWindow.setCentralWidget(vtkRenderWidget);<br \/>\n  \/\/ VTK part<br \/>\n  vtkNew&lt;vtkGenericOpenGLRenderWindow&gt; window;<br \/>\n  vtkRenderWidget-&gt;setRenderWindow(window.Get());<\/p>\n<p>  vtkNew&lt;vtkSphereSource&gt; sphere;<br \/>\n  sphere-&gt;SetRadius(1.0);<br \/>\n  sphere-&gt;SetThetaResolution(100);<br \/>\n  sphere-&gt;SetPhiResolution(100);<\/p>\n<p>  vtkNew&lt;vtkDataSetMapper&gt; mapper;<br \/>\n  mapper-&gt;SetInputConnection(sphere-&gt;GetOutputPort());<\/p>\n<p>  vtkNew&lt;vtkActor&gt; actor;<br \/>\n  actor-&gt;SetMapper(mapper);<br \/>\n  actor-&gt;GetProperty()-&gt;SetEdgeVisibility(true);<br \/>\n  actor-&gt;GetProperty()-&gt;SetRepresentationToSurface();<\/p>\n<p>  vtkNew&lt;vtkRenderer&gt; renderer;<br \/>\n  renderer-&gt;AddActor(actor);<\/p>\n<p>  window-&gt;AddRenderer(renderer);<\/p>\n<p>  \/\/ setup initial status<br \/>\n  std::mt19937 randEng(0);<br \/>\n  ::Randomize(sphere, mapper, window, randEng);<\/p>\n<p>  \/\/ connect the buttons<br \/>\n  QObject::connect(&amp;randomizeButton, &amp;QPushButton::released,<br \/>\n    [&amp;]() { ::Randomize(sphere, mapper, window, randEng); });<\/p>\n<p>  mainWindow.show();<\/p>\n<p>  return app.exec();<br \/>\n}<\/p>\n<p>namespace<br \/>\n{<br \/>\nvoid Randomize(vtkSphereSource* sphere, vtkMapper* mapper, vtkGenericOpenGLRenderWindow* window,<br \/>\n  std::mt19937&amp; randEng)<br \/>\n{<br \/>\n  \/\/ generate randomness<br \/>\n  double randAmp &#061; 0.2 &#043; ((randEng() % 1000) \/ 1000.0) * 0.2;<br \/>\n  double randThetaFreq &#061; 1.0 &#043; (randEng() % 9);<br \/>\n  double randPhiFreq &#061; 1.0 &#043; (randEng() % 9);<\/p>\n<p>  \/\/ extract and prepare data<br \/>\n  sphere-&gt;Update();<br \/>\n  vtkSmartPointer&lt;vtkPolyData&gt; newSphere;<br \/>\n  newSphere.TakeReference(sphere-&gt;GetOutput()-&gt;NewInstance());<br \/>\n  newSphere-&gt;DeepCopy(sphere-&gt;GetOutput());<br \/>\n  vtkNew&lt;vtkDoubleArray&gt; height;<br \/>\n  height-&gt;SetName(&#034;Height&#034;);<br \/>\n  height-&gt;SetNumberOfComponents(1);<br \/>\n  height-&gt;SetNumberOfTuples(newSphere-&gt;GetNumberOfPoints());<br \/>\n  newSphere-&gt;GetPointData()-&gt;AddArray(height);<\/p>\n<p>  \/\/ deform the sphere<br \/>\n  for (int iP &#061; 0; iP &lt; newSphere-&gt;GetNumberOfPoints(); iP&#043;&#043;)<br \/>\n  {<br \/>\n    double pt[3] &#061; { 0.0 };<br \/>\n    newSphere-&gt;GetPoint(iP, pt);<br \/>\n    double theta &#061; std::atan2(pt[1], pt[0]);<br \/>\n    double phi &#061; std::atan2(pt[2], std::sqrt(std::pow(pt[0], 2) &#043; std::pow(pt[1], 2)));<br \/>\n    double thisAmp &#061; randAmp * std::cos(randThetaFreq * theta) * std::sin(randPhiFreq * phi);<br \/>\n    height-&gt;SetValue(iP, thisAmp);<br \/>\n    pt[0] &#043;&#061; thisAmp * std::cos(theta) * std::cos(phi);<br \/>\n    pt[1] &#043;&#061; thisAmp * std::sin(theta) * std::cos(phi);<br \/>\n    pt[2] &#043;&#061; thisAmp * std::sin(phi);<br \/>\n    newSphere-&gt;GetPoints()-&gt;SetPoint(iP, pt);<br \/>\n  }<br \/>\n  newSphere-&gt;GetPointData()-&gt;SetScalars(height);<\/p>\n<p>  \/\/ reconfigure the pipeline to take the new deformed sphere<br \/>\n  mapper-&gt;SetInputDataObject(newSphere);<br \/>\n  mapper-&gt;SetScalarModeToUsePointData();<br \/>\n  mapper-&gt;ColorByArrayComponent(&#034;Height&#034;, 0);<br \/>\n  window-&gt;Render();<br \/>\n}<br \/>\n} \/\/ namespace<\/p>\n<p>\u7ed3\u679c\u663e\u793a<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013303-6852174f6ef04.gif\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb547\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u9996\u5148\u901a\u8fc7cmake\u914d\u7f6e\u6240\u793a\u5305\u542b\u6587\u4ef6\u4ee5\u53ca\u94fe\u63a5\u5e93\u94fe\u63a5\u5e93\u4e3b\u8981\u6587\u4ef6\u5982\u4e0bE:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkGUISupportQt-9.3.libE:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkInteractionWidgets-9.3.libE:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingOpenGL2-9.3.libE:\\\\NativeThirdParty\\\\VTK_9_3\\\\lib\\\\vtkRenderingHyp<\/p>\n","protected":false},"author":2,"featured_media":44253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[218,4118],"topic":[],"class_list":["post-44257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-qt","tag-vtk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/44257.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb547\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u9996\u5148\u901a\u8fc7cmake\u914d\u7f6e\u6240\u793a\u5305\u542b\u6587\u4ef6\u4ee5\u53ca\u94fe\u63a5\u5e93\u94fe\u63a5\u5e93\u4e3b\u8981\u6587\u4ef6\u5982\u4e0bE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkGUISupportQt-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkInteractionWidgets-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkRenderingOpenGL2-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkRenderingHyp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44257.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-18T01:33:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013300-6852174cb4b62.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44257.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44257.html\",\"name\":\"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-18T01:33:04+00:00\",\"dateModified\":\"2025-06-18T01:33:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44257.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44257.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44257.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/44257.html","og_locale":"zh_CN","og_type":"article","og_title":"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb547\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u9996\u5148\u901a\u8fc7cmake\u914d\u7f6e\u6240\u793a\u5305\u542b\u6587\u4ef6\u4ee5\u53ca\u94fe\u63a5\u5e93\u94fe\u63a5\u5e93\u4e3b\u8981\u6587\u4ef6\u5982\u4e0bE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkGUISupportQt-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkInteractionWidgets-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkRenderingOpenGL2-9.3.libE:\\NativeThirdParty\\VTK_9_3\\lib\\vtkRenderingHyp","og_url":"https:\/\/www.wsisp.com\/helps\/44257.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-18T01:33:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250618013300-6852174cb4b62.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/44257.html","url":"https:\/\/www.wsisp.com\/helps\/44257.html","name":"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-18T01:33:04+00:00","dateModified":"2025-06-18T01:33:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44257.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44257.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44257.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"QT\u4e2d\u4f7f\u7528QVTKOpenGLNativeWidget\u663e\u793a\u4e09\u7ef4\u56fe\u5f62\uff08VTK9.x\u4ee5\u4e0a\u7248\u672c\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=44257"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44257\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/44253"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44257"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}