Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Drag and Drop a 3D shape into a QGraphicsView and display -- how to?
Forum Updated to NodeBB v4.3 + New Features

Drag and Drop a 3D shape into a QGraphicsView and display -- how to?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.3k 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:

    I'm trying to drag and drop a 3D shape into a QGraphicsView and display. Is there any examples for me to follow or use directly?

    Cheers
    Pei

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

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on last edited by
      #2

      QGraphicsView is designed with 2d graphics in mind and does not support 3D. That being said, it can still be done, but you will have to do it on your own with regular OpenGL api calls.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        [quote author="utcenter" date="1361894892"]QGraphicsView is designed with 2d graphics in mind and does not support 3D. That being said, it can still be done, but you will have to do it on your own with regular OpenGL api calls.[/quote]

        Actually, it is called 2.5D :)

        @jiapei100, if you are using a "MIME", QGraphicsView can actually mimic a 3D shape but depends on how you implement it (just mimic it and NOT to fully support it). 3D is supported in Qt via OpenGL.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        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