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. How to make default icon bigger when button changes size? [SOLVED]
QtWS25 Last Chance

How to make default icon bigger when button changes size? [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
c++linuxiconsizebutton
2 Posts 2 Posters 2.0k 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.
  • M Offline
    M Offline
    marlenet15
    wrote on last edited by marlenet15
    #1

    This is how I initialize the icon within the button:
    pageToSetupPushButton->setIcon(this->style()->standardIcon(QStyle::SP_ArrowRight));

    However, when I change the height and width of the button, the icon stays the same. Is there any way that I can make it bigger? My application is going to be full screen and those icons are very small. Also, I really want to avoid getting those icons anywhere else besides those icons in Qt. Thank you!

    R 1 Reply Last reply
    0
    • M marlenet15

      This is how I initialize the icon within the button:
      pageToSetupPushButton->setIcon(this->style()->standardIcon(QStyle::SP_ArrowRight));

      However, when I change the height and width of the button, the icon stays the same. Is there any way that I can make it bigger? My application is going to be full screen and those icons are very small. Also, I really want to avoid getting those icons anywhere else besides those icons in Qt. Thank you!

      R Offline
      R Offline
      raf924
      wrote on last edited by
      #2

      @marlenet15 See the docs : http://doc.qt.io/qt-5/qabstractbutton.html#iconSize-prop

      1 Reply Last reply
      1

      • Login

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