Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to increase Qt Creator font
Forum Updated to NodeBB v4.3 + New Features

How to increase Qt Creator font

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 4 Posters 719 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    Tried to play with font in settings, but It also increases code itself
    I need to increase size of text upon below screenshots1.png 2.png

    Axel SpoerlA cristian-adamC 2 Replies Last reply
    0
    • J JacobNovitsky

      Tried to play with font in settings, but It also increases code itself
      I need to increase size of text upon below screenshots1.png 2.png

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @JacobNovitsky
      Creator picks up the system font.
      You can specify the editor font here.

      Software Engineer
      The Qt Company, Oslo

      J 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
      • J JacobNovitsky

        Tried to play with font in settings, but It also increases code itself
        I need to increase size of text upon below screenshots1.png 2.png

        cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #3

        You can use a stylesheet to achieve this.

        For exmple my fonts.css looks like this:

        QWidget
        {
          font: 11pt;
        }
        

        You only need to pass this to Qt Creator via command line like:

        $ ./qtcreator -stylesheet fonts.css
        

        Qt Creator went from this default view:
        alt text
        to this one:
        alt text

        1 Reply Last reply
        2
        • Axel SpoerlA Axel Spoerl

          @JacobNovitsky
          Creator picks up the system font.
          You can specify the editor font here.

          J Offline
          J Offline
          JacobNovitsky
          wrote on last edited by JacobNovitsky
          #4

          @cristian-adam
          where should I put fonts.css?

          jsulmJ 1 Reply Last reply
          0
          • J JacobNovitsky

            @cristian-adam
            where should I put fonts.css?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @JacobNovitsky Like @cristian-adam posted you pass it as parameter to QtCreator when you start it:

            ./qtcreator -stylesheet fonts.css
            

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            J 1 Reply Last reply
            1
            • jsulmJ jsulm

              @JacobNovitsky Like @cristian-adam posted you pass it as parameter to QtCreator when you start it:

              ./qtcreator -stylesheet fonts.css
              
              J Offline
              J Offline
              JacobNovitsky
              wrote on last edited by JacobNovitsky
              #6

              @jsulm yes, but I've created font.css in my home directory and qt doesnt see it
              j@j-BOHB-WAX9:~$ qtcreator -stylesheet fonts.css
              QCss::Parser - Failed to load file "fonts.css"
              QCss::Parser - Failed to load file "fonts.css"

              upd:
              but below worked for me

              j@j-BOHB-WAX9:~$ qtcreator -stylesheet /home/j/font.css

              thanks ya all

              1 Reply Last reply
              0
              • aha_1980A aha_1980 has marked this topic as solved on
              • cristian-adamC cristian-adam referenced this topic on
              • cristian-adamC cristian-adam referenced this topic
              • Z zetasen referenced this topic

              • Login

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