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. QPushButton icon size question
Forum Update on Monday, May 27th 2025

QPushButton icon size question

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k 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.
  • G Offline
    G Offline
    gsxruk
    wrote on last edited by
    #1

    Hi,

    I have an application where several buttons include a 24x24 icon. GUI's I have created using a previous version of Qt Creator appear to include the following in the xml it generates:

    @<property name="iconSize">
    <size>
    <width>24</width>
    <height>24</height>
    </size>
    </property>@

    However, this does not appear to be added using the latest version. I use Qt Creator on several PC's, so when the source is opened on an alternate PC, the buttons on GUI's created on the latest version default back to 16x16. But buttons created on the older version don't. Has this been removed from Qt Creator for some reason?

    Thanks.

    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