Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 在QGraphicsView中画一个3D cuboid,并且可以用鼠标任意拖拽顶点或者边,但是不改变背景图,怎么做?
Qt 6.11 is out! See what's new in the release blog

在QGraphicsView中画一个3D cuboid,并且可以用鼠标任意拖拽顶点或者边,但是不改变背景图,怎么做?

Scheduled Pinned Locked Moved Chinese
4 Posts 3 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jiapei100J Offline
    jiapei100J Offline
    jiapei100
    wrote on last edited by
    #1

    Hi, all:

    我想在QGraphicsView中画一个3D cuboid,并且可以用鼠标任意拖拽顶点或者边,但是不改变背景图。不知道是用Qt3D 还是 qwtplot3d?

    另外,有没有比较良好的纯C/C++的 shape的库,很想用CGAL来着,但是看着好复杂,貌似要对形状理论有较深理解,比较痛苦...

    cheers
    Pei

    Welcome to Longer Vision
    https://www.longervision.com

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted487
      wrote on last edited by
      #2

      qt3d是依赖quick2的吧,不是在graphicsview里实现的吧

      1 Reply Last reply
      0
      • jiapei100J Offline
        jiapei100J Offline
        jiapei100
        wrote on last edited by
        #3

        quick2是什么?
        不在graphicsview实现没有关系。
        总之我自己想实现的是:
        在某一个particular的地方(比如graphicsview),画出3D.

        Welcome to Longer Vision
        https://www.longervision.com

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jiangcaiyang
          wrote on last edited by
          #4

          可以参考一下Qt例子:Cube,将黑色的背景修改成一个图片好了。

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved