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 set stylesheet for each QToolButton on QCalendarWidget through QTDesigner ?
Qt 6.11 is out! See what's new in the release blog

How to set stylesheet for each QToolButton on QCalendarWidget through QTDesigner ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 999 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.
  • LematL Offline
    LematL Offline
    Lemat
    wrote on last edited by
    #1

    I want to change QCalendarWidget popup left and right button arrow with my own created.

    Time to elevate.

    1 Reply Last reply
    0
    • LematL Offline
      LematL Offline
      Lemat
      wrote on last edited by Lemat
      #2

      i had find solution myself and if i can help anyone:

      in QT Designer, QCalendarWidget Stylesheet, add this:

      #calendar_objectname QWidget#qt_calendar_prevmonth
      {
         qproperty-icon:url ("path/icon.png");
      }
      
      #calendar_objectname QWidget#qt_calendar_nextmonth
      {
         qproperty-icon:url ("path/icon.png");
      }
      

      hope it will help somebody.

      Time to elevate.

      jsulmJ 1 Reply Last reply
      3
      • LematL Lemat

        i had find solution myself and if i can help anyone:

        in QT Designer, QCalendarWidget Stylesheet, add this:

        #calendar_objectname QWidget#qt_calendar_prevmonth
        {
           qproperty-icon:url ("path/icon.png");
        }
        
        #calendar_objectname QWidget#qt_calendar_nextmonth
        {
           qproperty-icon:url ("path/icon.png");
        }
        

        hope it will help somebody.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Lemat Please mark the thread as solved

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        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