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. Asking clarification about a documentation section
Qt 6.11 is out! See what's new in the release blog

Asking clarification about a documentation section

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 167 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.
  • R Offline
    R Offline
    rida_zouga
    wrote last edited by
    #1

    I was reading through the documentation about default icons and how can they be customized, though no examples were provided and tried what little the documentation provides (use the size-icon property) but to no avail, can anyone point out if this section still works and an example in pyqt if possible. Thanks

    SGaistS 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by
      #2

      What's wrong with the example given in the documentation?

      QMessageBox {
          dialogbuttonbox-buttons-have-icons: true;
          dialog-ok-icon: url(ok.svg);
          dialog-cancel-icon: url(cancel.png),
                              url(grayed_cancel.png) disabled;
      }
      

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      R 1 Reply Last reply
      0
      • R rida_zouga

        I was reading through the documentation about default icons and how can they be customized, though no examples were provided and tried what little the documentation provides (use the size-icon property) but to no avail, can anyone point out if this section still works and an example in pyqt if possible. Thanks

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #3

        @rida_zouga hi,

        What exactly did you try ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply
        0
        • SGaistS SGaist

          @rida_zouga hi,

          What exactly did you try ?

          R Offline
          R Offline
          rida_zouga
          wrote last edited by
          #4

          @SGaist honestly just this

          QSpinBox ::up-arrow {
          	icon: url(uparrow-icon);
          	icon-size: 20px;
          }
          

          because in the documentation there is this table with name for each Standard icon used by qt and wanted to change its size, but not working, since I just want to change for example size of QStyle::SP_ArrowUp.

          1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            What's wrong with the example given in the documentation?

            QMessageBox {
                dialogbuttonbox-buttons-have-icons: true;
                dialog-ok-icon: url(ok.svg);
                dialog-cancel-icon: url(cancel.png),
                                    url(grayed_cancel.png) disabled;
            }
            
            R Offline
            R Offline
            rida_zouga
            wrote last edited by
            #5

            @Christian-Ehrlicher didn't seen that at first but was wondering about the table containing all default icons and their names and changing their size.

            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