Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved Get "real" Font

    General and Desktop
    font family
    2
    3
    738
    Loading More Posts
    • 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.
    • C
      ckvsoft last edited by

      Hi
      Please can anyone tell me how i get the real font family name.

      When i do somethink like:

      // Non existing Font-Family "Test"

      QFont test("Test");
      QApplication::setFont(test);

      QFont systemFont = QApplication::font();

      The ApplicationFont will change to anythink but

      systemFont.family() will give me "Test"

      How can i get the real Family Name?

      thx Chris

      Ratzz 1 Reply Last reply Reply Quote 0
      • Ratzz
        Ratzz @ckvsoft last edited by

        @ckvsoft
        Is this what you are looking for? QFontInfo::family()

        --Alles ist gut.

        1 Reply Last reply Reply Quote 3
        • C
          ckvsoft last edited by

          Hi
          Nice- Yes this is it.

          It Works.

          Thx Chris

          1 Reply Last reply Reply Quote 0
          • First post
            Last post