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 can I use calendarWidget with Jalali format?

How can I use calendarWidget with Jalali format?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 1.4k Views 2 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.
  • E Offline
    E Offline
    EmadDeve20
    wrote on last edited by
    #1

    hello. i want to use calendarWidget with jalai format! this is possible?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you mean by jalai format ?

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

      JonBJ 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What do you mean by jalai format ?

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by JonB
        #3

        @SGaist
        Jalali calendar
        https://pypi.org/project/jdatetime/
        https://www.cssscript.com/jalali-date-picker/

        alt text

        :)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qt has the QJalaliCalendar class which hints to some form of support for it.

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

          1 Reply Last reply
          2
          • E Offline
            E Offline
            EmadDeve20
            wrote on last edited by EmadDeve20
            #5

            @SGaist I using Qt Designer to make my Ui. I want a widget like a calendar widget but with Jalali format. and I write backend with python. so do you can send me help page with python?

            1 Reply Last reply
            0
            • E Offline
              E Offline
              EmadDeve20
              wrote on last edited by
              #6

              I want to create a reporter window to set dates and get data from DB. I want to use a calendar. but this project is for a factory in Iran and I must use jalali calendar.

              Do you have a suggestion if this is not possible?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                You can check the Calendar Widget example for some inspiration.

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

                E 1 Reply Last reply
                1
                • SGaistS SGaist

                  You can check the Calendar Widget example for some inspiration.

                  E Offline
                  E Offline
                  EmadDeve20
                  wrote on last edited by
                  #8

                  @SGaist thank you. I will check it :D

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    EmadDeve20
                    wrote on last edited by
                    #9

                    i know this is so late but i used the text line edit for get the date from user.
                    :)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      asadasad
                      wrote last edited by asadasad
                      #10

                      Hi!

                      If you’re looking for a Jalali (Persian) calendar widget for Qt/PySide6, you might want to check out this project:

                      alt text

                      πŸ“¦ PyPI package (installable via pip):
                      πŸ”— https://pypi.org/project/qjalalicalendarwidget/

                      πŸ’» Source code on GitHub:
                      πŸ”— https://github.com/reza-rezvani2052/QJalaliCalendarWidget

                      What it is:
                      This is a modern Jalali calendar widget built for PySide6 applications. It provides a native-style calendar UI that shows Persian (Jalali) dates instead of the default Gregorian ones. You can install it with:

                      pip install qjalalicalendarwidget

                      and then import and use the widget in your Qt/Python code to let users pick dates in the Persian calendar system.

                      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