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. Additional char in a year button in QCalendarWidget

Additional char in a year button in QCalendarWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 348 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.
  • Q Offline
    Q Offline
    qwe3
    wrote on last edited by
    #1

    Hi,

    I have QCalendarWidget:

        QCalendarWidget *cal = new QCalendarWidget(this);
        cal->resize(400,400);
        cal->setLocale(QLocale::Spanish);
    

    When I click on a year button, which is on the top, there is a QSpinBox, where I can change a year. When I click outside this QSpinBox to finish edit, there is an additional char in this year button. For example in english locale there is comma, in german and spanish there is dot, in polish is space:

    cal.png

    I would like to don't add this char.

    eyllanescE 1 Reply Last reply
    0
    • Q qwe3

      Hi,

      I have QCalendarWidget:

          QCalendarWidget *cal = new QCalendarWidget(this);
          cal->resize(400,400);
          cal->setLocale(QLocale::Spanish);
      

      When I click on a year button, which is on the top, there is a QSpinBox, where I can change a year. When I click outside this QSpinBox to finish edit, there is an additional char in this year button. For example in english locale there is comma, in german and spanish there is dot, in polish is space:

      cal.png

      I would like to don't add this char.

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #2

      @qwe3 what is the qt version?

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qwe3
        wrote on last edited by
        #3

        @eyllanesc 5.15.1

        eyllanescE 1 Reply Last reply
        0
        • Q qwe3

          @eyllanesc 5.15.1

          eyllanescE Offline
          eyllanescE Offline
          eyllanesc
          wrote on last edited by eyllanesc
          #4

          @qwe3 I do not reproduce the error:

          • Linux
          • Qt 5.15.2

          Screenshot_20211013_001237.png

          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qwe3
            wrote on last edited by
            #5

            @eyllanesc Windows 10, Qt 5.15.1. Maybe locale problem?

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qwe3
              wrote on last edited by qwe3
              #6

              @eyllanesc In win 10, qt 5.15.1 you have to click on a year ( you have to see a QSpinBox ), don't change it and click outside it for example on this top blue label. When you change a year and click outside everything is ok.

              eyllanescE 1 Reply Last reply
              0
              • Q qwe3

                @eyllanesc In win 10, qt 5.15.1 you have to click on a year ( you have to see a QSpinBox ), don't change it and click outside it for example on this top blue label. When you change a year and click outside everything is ok.

                eyllanescE Offline
                eyllanescE Offline
                eyllanesc
                wrote on last edited by
                #7

                @qwe3 When I click and the QSpinBox is shown I see "2021"

                If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                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