Results 1 to 8 of 8

Thread: basic questions of GPU opengl in qt

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

    Default basic questions of GPU opengl in qt

    hi friends,
    I want to know some details regarding Qt with GPU cards say NVidia,ATI cards.
    1- if i install a GPU driver after installing qt . did i have to make any changes in qt settings or i have to reinstall qt.
    2- how qt mkspecs will detect the newly installed GPU opengl libraries.
    3- how i can configure the new gpu libraries with the qt application apart from QT += opengl in .pro file.
    4- GPU cards will accelerate the qt application only when opengl module is used.right now im accelerating the window with graphicsview opengl viewport.

    can anyone please help me giving some details regarding GPU with qt.
    Im using Windows 7 - qt-4.8.4 with vc++ 10 compiler .
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    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: basic questions of GPU opengl in qt

    Quote Originally Posted by wagmare View Post
    1- if i install a GPU driver after installing qt . did i have to make any changes in qt settings or i have to reinstall qt.
    You don't have to do anything.
    2- how qt mkspecs will detect the newly installed GPU opengl libraries.
    They will not. There is no need for that.
    3- how i can configure the new gpu libraries with the qt application apart from QT += opengl in .pro file.
    No need.

    4- GPU cards will accelerate the qt application only when opengl module is used.right now im accelerating the window with graphicsview opengl viewport.
    I don't see a question here.

    can anyone please help me giving some details regarding GPU with qt.
    Details regarding what exactly?
    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.


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

    wagmare (30th October 2013)

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

    Default Re: basic questions of GPU opengl in qt

    first thx for the reply .. im clear with all ..
    just one question ..

    4- GPU cards will accelerate the qt application only when opengl module is used.right now im accelerating the window with graphicsview opengl viewport.
    I don't see a question here.
    i know this question is stupid but just to clarify.
    I want to know whether a normal qt application (without opengl) performance will be improve wit GPU installation in system.

    You don't have to do anything.
    2- how qt mkspecs will detect the newly installed GPU opengl libraries.
    They will not. There is no need for that.
    can u please explain a bit about how qt manages the opengl library .. if u wish ..
    "Behind every great fortune lies a crime" - Balzac

  5. #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: basic questions of GPU opengl in qt

    Quote Originally Posted by wagmare View Post
    I want to know whether a normal qt application (without opengl) performance will be improve wit GPU installation in system.
    In regular conditions, not really.
    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.


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

    wagmare (30th October 2013)

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

    Default Re: basic questions of GPU opengl in qt

    You don't have to do anything.
    2- how qt mkspecs will detect the newly installed GPU opengl libraries.
    They will not. There is no need for that.
    can u please explain a bit about how qt manages the opengl library .. if u wish ..
    "Behind every great fortune lies a crime" - Balzac

  8. #6
    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: basic questions of GPU opengl in qt

    Qt doesn't manage the OpenGL library in any way. If you use OpenGL calls in your program (either directly or through QPainter with a device using OpenGL as a backend) then OpenGL is used. Otherwise it is not used.
    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:

    wagmare (30th October 2013)

  10. #7
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: basic questions of GPU opengl in qt

    There exists a "hardware abstraction layer" (HAL) in your operating system. The layer supplies an unified interface to physical devices (graphics, sound and similar). In case of winblows and graphics, it is DirectX.

    The "user" applications (including your OpenGL Qt apps) do not access the physical devices directly but they use HAL instead. HAL then passes the request to the corresponding physical device driver which in turn accesses the device. If you install a new piece device in your comp, you are installing a new physical device drivers and register them with HAL. The rest of the CD are no use demos, games, advertisings and perhaps a control program (which will use HAL, too).

    The result is that all your apps will start using the new video card on rebooting your comp after installation. Nothing has changed for them and they do not need any modifications (unless you want to exploit new possibilities offered by your new video card). If something does not work and it should then the problem is with DirectX or with settings of your winblows. Therefore, answers to all your question are "don't care"

  11. The following user says thank you to Radek for this useful post:

    wagmare (30th October 2013)

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

    Default Re: basic questions of GPU opengl in qt

    ur post is neat and clear as wysota .. thank you Radek and wysota ..
    Last edited by wagmare; 30th October 2013 at 08:18.
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Basic questions to debugging
    By emigrand in forum Newbie
    Replies: 5
    Last Post: 25th February 2012, 22:39
  2. Game programming basic questions?
    By unix7777 in forum Newbie
    Replies: 3
    Last Post: 20th February 2010, 17:16
  3. 2 basic questions?
    By unix7777 in forum Newbie
    Replies: 5
    Last Post: 28th January 2010, 09:44
  4. Basic Qt Questions
    By BalaQT in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2009, 17:13
  5. a basic questions!!
    By unix7777 in forum Newbie
    Replies: 1
    Last Post: 28th March 2009, 19:10

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.