Results 1 to 7 of 7

Thread: Use of Computer Graphics in Qt creator

  1. #1
    Join Date
    Nov 2013
    Posts
    11
    Qt products
    Qt5

    Default Use of Computer Graphics in Qt creator

    Are we able to include/insert Computer graphics function in qt creator? I mean are we able to include all functions of Computer graphics even those that are not predefined in qt creator? Suppose if i want to insert Square shape in a container frame so what will be code for that?

  2. #2
    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: Use of Computer Graphics in Qt creator

    You can use OpenGL with Qt widgets. Also, take a look at QPainEvent and QPainter class.

  3. #3
    Join Date
    Nov 2013
    Posts
    11
    Qt products
    Qt5

    Default Re: Use of Computer Graphics in Qt creator

    I am new to OpenGL. Can you tell little bit about OpenGL? and Please provide some code to draw square.

  4. #4
    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: Use of Computer Graphics in Qt creator

    First of all, read a book. If you are new to OpenGL it is impossible to explain it in few forum posts. I recommend OpenGL Programming Guide (the "Red Book"), but you may find many others. Just pick one and read it.
    Next:
    Nehe Productions: Your First Polygon
    Qt OpenGL Examples

  5. #5
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Use of Computer Graphics in Qt creator

    Quote Originally Posted by parulkalra View Post
    I am new to OpenGL. Can you tell little bit about OpenGL? and Please provide some code to draw square.
    Follow these tutorials to get a clue in openGL: http://ogldev.atspace.co.uk/
    after reviewing the first few lessons, google for coloring and cube examples under QT.

  6. #6
    Join Date
    Nov 2013
    Posts
    11
    Qt products
    Qt5

    Default Re: Use of Computer Graphics in Qt creator

    thanku so much...

  7. #7
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Use of Computer Graphics in Qt creator

    If you are looking for something as simple as drawing squares, definitely have a look at QPainter as stampede suggested.

    It's not hardware accelerated, but still good enough to draw all widgets and in some quite complex styles.

    Cheers,
    _

Similar Threads

  1. Replies: 3
    Last Post: 8th December 2010, 11:45
  2. Run my program on a different computer?
    By skizzik in forum Installation and Deployment
    Replies: 18
    Last Post: 12th November 2010, 14:26
  3. computer crash with Qt Design/ Qt Creator Designer
    By OverTheOCean in forum Qt Tools
    Replies: 1
    Last Post: 26th September 2009, 16:23
  4. Turn off computer
    By swiety in forum KDE Forum
    Replies: 1
    Last Post: 5th January 2008, 15:40

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.