Qt Forum

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

    Widget - multiple fonts

    General and Desktop
    4
    7
    2986
    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.
    • S
      Sorin last edited by

      How can I set on a widget( lets say QToolButton ) a text having different fonts? Thanks!

      There are only 10 types of people in the world: Those who understand binary, and those who don't

      1 Reply Last reply Reply Quote 0
      • T
        tony last edited by

        Well,

        if you mean "change text font" on a widget, you have setFont method. But I guess that's not what you're asking about, so please clarify it better :)

        T.

        1 Reply Last reply Reply Quote 0
        • A
          alexander last edited by

          or use styles

          1 Reply Last reply Reply Quote 0
          • S
            Sorin last edited by

            For example I want to put "this":http://img687.imageshack.us/img687/2752/stringh.jpg string on my control

            There are only 10 types of people in the world: Those who understand binary, and those who don't

            1 Reply Last reply Reply Quote 0
            • S
              Sorin last edited by

              Till now the only solution I found is to add a QLabel with a diferent font as a child of my QToolButton control

              There are only 10 types of people in the world: Those who understand binary, and those who don't

              1 Reply Last reply Reply Quote 0
              • T
                tobias.hunger last edited by

                Sorin: Qt allows to use rich text in most places, which can have embedded font settings. Does that work for you?

                1 Reply Last reply Reply Quote 0
                • S
                  Sorin last edited by

                  what I need is a QToolButton to display his text in rich text format, I saw that a bug was posted for "this":http://bugreports.qt.nokia.com/browse/QTBUG-3535 but I was closed without being evaluated

                  There are only 10 types of people in the world: Those who understand binary, and those who don't

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