Results 1 to 7 of 7

Thread: How to design a 3D cube by using QPqinter?

  1. #1
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to design a 3D cube by using QPqinter?

    Please tell me how to design 3 cube by using QPainter?
    I need to design a line that will look as in 3D ,so i think that if i create the line in a cube
    , then it can be possible.
    please provede me some help.

  2. #2
    Join Date
    Apr 2011
    Location
    San Francisco Bay area
    Posts
    5
    Qt products
    Platforms
    MacOS X Windows

    Default Re: How to design a 3D cube by using QPqinter?

    I don't understand clearly. Are you (1) trying to create a 3-D looking cube using lines? Or (2) trying to create a 3-D looking line, with a square cross-section? And either way, what is determining the position and orientation of the cube or line you wish to draw -- what control information do you have?

  3. #3
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to design a 3D cube by using QPqinter?

    I just want to make a 3D looking line.
    please if you can help....

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to design a 3D cube by using QPqinter?

    So you want a line or a cube? Or maybe you want to project a 3D line onto a 2D canvas?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to design a 3D cube by using QPqinter?

    Quote Originally Posted by wysota View Post
    So you want a line or a cube? Or maybe you want to project a 3D line onto a 2D canvas?
    I want to draw a cube which may rotatae by mouse or by set angle.

  6. #6
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to design a 3D cube by using QPqinter?

    Use QtOpenGL module instead of QPainter.

  7. The following user says thank you to stampede for this useful post:

    anupam (9th October 2012)

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to design a 3D cube by using QPqinter?

    Quote Originally Posted by anupam View Post
    I want to draw a cube which may rotatae by mouse or by set angle.
    So you want to project a 3D shape onto a 2D canvas. If you want to do that manually then google for appropriate math. What you want is called projection.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. The following user says thank you to wysota for this useful post:

    anupam (9th October 2012)

Similar Threads

  1. cube with widgets
    By mkind in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2011, 06:51
  2. Tab Design
    By FoleyX90 in forum Newbie
    Replies: 11
    Last Post: 3rd May 2010, 18:14
  3. how to redraw cube to rectangle
    By wagmare in forum Qt Programming
    Replies: 6
    Last Post: 11th February 2009, 05:26
  4. Replies: 3
    Last Post: 5th October 2008, 23:41
  5. Design help please
    By munna in forum General Programming
    Replies: 1
    Last Post: 12th October 2006, 22:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.