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. QWizard Commit button font size bug??
Qt 6.11 is out! See what's new in the release blog

QWizard Commit button font size bug??

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.9k 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.
  • M Offline
    M Offline
    michal.gjk
    wrote on last edited by
    #1

    Win7 64 - Qt 5.2 MSVS2012 32bit

    I can't seem to be able to change Commit and Finish button sizes in QWizard subclass' constructor.

    like so:
    @
    ui->setupUi(this);

    QFont font = button(QWizard::CommitButton)->font();
    font.setPointSize(50);
    button(QWizard::CommitButton)->setFont(font);
    @

    This works for Next and Back buttons and it used to work for all the buttons in 5.1.1 but Commit and Finish refuse to cooperate in 5.2. Can anyone confirm ? Could this be a bug?

    As a side note the Wizard class and form are generated from File->New File or Project menu.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      michal.gjk
      wrote on last edited by
      #2

      Alright I'll take that as a yes then :)

      As a last resort i'm now using SetStyleSheet so I don't have to revert to 5.1.1.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        You should be able to manipulate the buttons at the moment the buttons actually become relevant. I don't think the button objects exist at other moments.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          michal.gjk
          wrote on last edited by
          #4

          They do exist as I can change their size, disable them, make them invisible plus like I said setStyleSheet works only thing that doesn't is setFont and only on those buttons. And just to make sure if I try to call set font from relevant page's initializePage method still nothing happens. This simply doesn't work for commit and finish buttons in 5.2. Most definitely seems like a regression.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            Ok, so file a bug report.

            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