Results 1 to 9 of 9

Thread: Qt Graphics

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Qt Graphics

    If your work involves only painting,, and not moving objects,,,you can consider using QWidget also. You have QPainter in paintEvent and rest you code

  2. #2
    Join Date
    Jul 2009
    Posts
    49
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Qt Graphics

    Hi,

    Thanks for the reply.

    I am using qt3.3 i need to draw the coordinate system on the qframe

    whether it can be done using qpainter?

    Thanks & regards,
    soumya

  3. #3
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Qt Graphics

    Yes !!
    Coz QFrame is derived from QWidget.

  4. #4
    Join Date
    Jul 2009
    Posts
    49
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Qt Graphics

    hi,

    Can u just send me the link to get started with

    the "The Graphics View Framework" for qt3.3
    Last edited by soumya; 19th August 2009 at 12:20.

  5. #5
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: Qt Graphics

    u are using qt 3.3
    so QGraphicsView is not supported ...

    here the link
    http://doc.trolltech.com/4.2/graphicsview.html
    Last edited by wagmare; 19th August 2009 at 12:22.
    "Behind every great fortune lies a crime" - Balzac

  6. #6
    Join Date
    Jul 2009
    Posts
    49
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Qt Graphics

    I have attached the .png file i need to make a graphics similar to that in qt-3.3.

    How this can be implemented.
    Attached Images Attached Images

  7. #7
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: Qt Graphics

    QGraphics wont support in qt 3.3 ...

    so u have to use QPainter to design the above
    and the dial movement u can refer
    http://doc.trolltech.com/4.2/widgets-analogclock.html ..

    and scale value check the plotter example in

    C++ GUI Programming with Qt 4, Second Edition
    by Jasmin Blanchette; Mark Summerfield

    chapter 05 ...
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Problem with graphics in Qt embedded Linux
    By Krzysztow in forum Qt for Embedded and Mobile
    Replies: 11
    Last Post: 29th July 2009, 11:59
  2. Learning 2D Graphics
    By ShaChris23 in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2007, 15:12
  3. Replies: 1
    Last Post: 5th March 2007, 21:50
  4. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 20:42

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
  •  
Qt is a trademark of The Qt Company.