Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Font parameterization

Font parameterization

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 882 Views
  • 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.
  • V Offline
    V Offline
    Valerian
    wrote on last edited by
    #1

    I'm working to parameterize fonts from an XML file.
    Is it possible to change the font size of components used in qml files on the fly without restarting the app?

    p3c0P 1 Reply Last reply
    0
    • V Valerian

      I'm working to parameterize fonts from an XML file.
      Is it possible to change the font size of components used in qml files on the fly without restarting the app?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @Valerian,
      This post might be of help.

      157

      V 1 Reply Last reply
      0
      • p3c0P p3c0

        Hi @Valerian,
        This post might be of help.

        V Offline
        V Offline
        Valerian
        wrote on last edited by Valerian
        #3

        @p3c0
        Thanks for the pointer.

        I'm trying the same. However, the app crashes when applying the new pixelSize to a component that is used all over the application. When I change the font family, it works without any problem.

        Is it possible to change the Font.pixelSize dynamically?

        p3c0P 1 Reply Last reply
        0
        • V Valerian

          @p3c0
          Thanks for the pointer.

          I'm trying the same. However, the app crashes when applying the new pixelSize to a component that is used all over the application. When I change the font family, it works without any problem.

          Is it possible to change the Font.pixelSize dynamically?

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Valerian

          Is it possible to change the Font.pixelSize dynamically?

          Yes. When the binding re-evaluates the font size should change.

          157

          V 1 Reply Last reply
          0
          • p3c0P p3c0

            @Valerian

            Is it possible to change the Font.pixelSize dynamically?

            Yes. When the binding re-evaluates the font size should change.

            V Offline
            V Offline
            Valerian
            wrote on last edited by
            #5

            @p3c0 Thanks it worked

            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