Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. Formatowanie tekstu w QPushButton
Qt 6.11 is out! See what's new in the release blog

Formatowanie tekstu w QPushButton

Scheduled Pinned Locked Moved Polish
3 Posts 2 Posters 2.0k 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.
  • W Offline
    W Offline
    WhyMe
    wrote on last edited by
    #1

    Witam.
    Czy jest możliwość, aby napis na przycisku był formatowany ?
    Buduję aplikację - kalkulator i chciałbym pokazać na przycisku potęgę, np. x<sup>2</sup>, ale nie wykorzystując x^2 czy obrazku jakiegoś, tylko faktycznie, aby mi się potęga pokazywała, jak to w html ?
    Pozdrawiam.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ariwez
      wrote on last edited by
      #2

      To powinno Ci trochę pomóc: "QPushButton with a custom QLabel":http://www.qtcentre.org/threads/31094-QPushButton-with-a-custom-QLabel?p=145160#post145160

      1 Reply Last reply
      0
      • W Offline
        W Offline
        WhyMe
        wrote on last edited by
        #3

        Tak wyświetliło x do kwadratu jak chciałem. Ciekawe czy da się prościej, później się temu przyjrzę.
        Dziękuję za pomoc.

        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