Results 1 to 4 of 4

Thread: Does Qt5 have APIs to render text by OpenGL?

  1. #1
    Join Date
    Oct 2013
    Location
    shanghai
    Posts
    14
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11

    Smile Does Qt5 have APIs to render text by OpenGL?

    Hey guys, i have a question about Qt5, text rendering is qt4 is by freetype, i am not sure if its the same in qt5, or does qt5 now support these two ways at the same time? where can i get the evidence in qt5 src? thank you so much!!!

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

    Default Re: Does Qt5 have APIs to render text by OpenGL?

    Qt5 has an OpenGL engine similar to that in Qt4 so I'm guessing the fonts are rendered in a similar fashion. In addition to that Qt Quick 2 in Qt5 uses distance fields for rendering text in Qt Quick.
    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. #3
    Join Date
    Oct 2013
    Location
    shanghai
    Posts
    14
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11

    Cool Re: Does Qt5 have APIs to render text by OpenGL?

    Thank you for your reply first!! Yea, i just know QML in qt5, it's rendered by OpenGL engine, and i wanna know if the normal text rendering has the same way, or just like what it is in Qt4...Im still reading docs of qt5 and searching more infos. pls give me some tips

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

    Default Re: Does Qt5 have APIs to render text by OpenGL?

    For widget-based rendering OpenGL is not used. Standard mechanisms such as freetype and fontconfig are used on desktop Linux systems. If you want to learn more, read about "Qt Platform Abstraction" (or short QPA) plugins.
    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.


Similar Threads

  1. Do offscreen render(openGL) with Qt5
    By stereoMatching in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2013, 12:34
  2. Render image on QLabel using openGl
    By vinodpaul in forum Newbie
    Replies: 2
    Last Post: 14th August 2012, 18:57
  3. OpenGL render to texture
    By Nicuvëo in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2011, 13:07
  4. Problem while using the S60 extension APIs and the Qt Mobility APIs
    By sudhir.linux in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd January 2011, 13:48
  5. Replies: 2
    Last Post: 24th July 2010, 10:41

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.