diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp index 08d5b1eee01..286642446a0 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp @@ -708,9 +708,9 @@ private: Volume_plane *y_item = new Volume_plane(img->image()->tx,img->image()->ty, img->image()->tz); Volume_plane *z_item = new Volume_plane(img->image()->tx,img->image()->ty, img->image()->tz); - x_item->setProperty("img",qVariantFromValue((void*)seg_img)); - y_item->setProperty("img",qVariantFromValue((void*)seg_img)); - z_item->setProperty("img",qVariantFromValue((void*)seg_img)); + x_item->setProperty("img",QVariant::fromValue((void*)seg_img)); + y_item->setProperty("img",QVariant::fromValue((void*)seg_img)); + z_item->setProperty("img",QVariant::fromValue((void*)seg_img)); x_item->setColor(QColor("red")); y_item->setColor(QColor("green"));