Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to convert HFONT to QFont?
Qt 6.11 is out! See what's new in the release blog

How to convert HFONT to QFont?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    feynman
    wrote on last edited by
    #1

    i just use the windows api function "CreateFont()" to create a hfont, but i don't know how to use it in qt, anyone can help?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      feynman
      wrote on last edited by
      #2

      i want to rotate the font 90 degree but don't use paintevent

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on last edited by
        #3

        Why would you avoid using paint event ?
        As per "this how-to":http://qt-project.org/faq/answer/how_can_i_draw_vertical_text It is very easy with paint event.


        Declaration of (Platform) independence.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          feynman
          wrote on last edited by
          #4

          [quote author="Rahul Das" date="1385014829"]Why would you avoid using paint event ?
          As per "this how-to":http://qt-project.org/faq/answer/how_can_i_draw_vertical_text It is very easy with paint event.[/quote]

          just get a project of someone, and that guy avoid using paintevent. Do you have another method?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on last edited by
            #5

            Nope, i don't know any better method!


            Declaration of (Platform) independence.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved