Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] How can I change wizard custom button font?
Forum Update on Monday, May 27th 2025

[Solved] How can I change wizard custom button font?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 620 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.
  • R Offline
    R Offline
    roseicollis
    wrote on last edited by
    #1

    Hi,

    I'm making a wizard app. I want to change the size of the font of the wizard buttons (in that case: CustomButton1 and CustomButton2).

    The thing is that I can change the colour of the text and the background when it has the focus for example but not the size...O.o or put it in bold in normal way but it ignores totally the font size..

    I have this on the Wizard:
    @

    this->button(QWizard::CustomButton1)->setStyleSheet("QPushButton{background-color:#ff2255; font: 25 px; font-weight: bold;;} QPushButton:focus{background-color: #2266ff); color: white;}");

    @

    I tried with font: 30 px, font-size: 30 px; font-size: 200%

    Thank you!!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      roseicollis
      wrote on last edited by
      #2

      Found the solution. As simple as QApplication::setFont();

      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