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 884 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 30 May 2016, 07:08 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?

    P 1 Reply Last reply 30 May 2016, 08:41
    0
    • V Valerian
      30 May 2016, 07:08

      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?

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 30 May 2016, 08:41 last edited by
      #2

      Hi @Valerian,
      This post might be of help.

      157

      V 1 Reply Last reply 30 May 2016, 08:44
      0
      • P p3c0
        30 May 2016, 08:41

        Hi @Valerian,
        This post might be of help.

        V Offline
        V Offline
        Valerian
        wrote on 30 May 2016, 08:44 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?

        P 1 Reply Last reply 30 May 2016, 08:48
        0
        • V Valerian
          30 May 2016, 08:44

          @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?

          P Offline
          P Offline
          p3c0
          Moderators
          wrote on 30 May 2016, 08:48 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 30 May 2016, 10:55
          0
          • P p3c0
            30 May 2016, 08:48

            @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 30 May 2016, 10:55 last edited by
            #5

            @p3c0 Thanks it worked

            1 Reply Last reply
            0

            1/5

            30 May 2016, 07:08

            • Login

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