Results 1 to 2 of 2

Thread: QCalendarWidget Navigation Bar PREV, NEXT month icons

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2021
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default QCalendarWidget Navigation Bar PREV, NEXT month icons

    Hello. Using PyQt5 with Python 3.9. I wish to change the ugly green navigation arrows on the navigation bar. Been on the internet for several hours trying different solutions and can't get them to work. This is the last modification to the widget I want to make. Any help would be greatly appreciated.

    Screenshot 2021-04-28 110233.png

    Here is my stylesheet params:

    self.cal.setStyleSheet(
    "QCalendarWidget QAbstractItemView{background-color: black;color: rgba(162,201,229,255);selection-background-color: rgb(46, 46, 46);selection-color: lightgray;selection-border: 1px solid black;}"
    "QCalendarWidget QWidget{alternate-background-color: rgb(46, 46, 46);color: gray;}"
    "QCalendarWidget QToolButton{background-color: black;color: rgb(155,145,155);font-size: 14px;font: bold;width: 70px;border: none;}"
    "QCalendarWidget QToolButton#qt_calendar_prevmonth{qproperty-icon: left_arrow.png;}"
    "QCalendarWidget QToolButton#qt_calendar_nextmonth{qproperty-icon: right_arrow.png;}"
    )
    Last edited by ZennDogg; 28th April 2021 at 20:29.

Similar Threads

  1. Replies: 2
    Last Post: 8th April 2013, 07:40
  2. QCalendarWidget month-year selection
    By alitoh in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2012, 14:47
  3. Replies: 7
    Last Post: 19th May 2010, 14:24
  4. Replies: 4
    Last Post: 19th May 2009, 09:06
  5. QDateEdit Month/Day Rollover
    By giverson in forum Qt Programming
    Replies: 1
    Last Post: 7th January 2008, 19:57

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.