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. [Solved] QDateEdit (date picker) strange translation bug?
Forum Updated to NodeBB v4.3 + New Features

[Solved] QDateEdit (date picker) strange translation bug?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.8k 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.
  • W Offline
    W Offline
    Woody
    wrote on last edited by
    #1

    I don't know if I'm doing something wrong, but only when I select the dutch language in my application, it shows the right language in a QDateEdit date picker.

    When I choose any other language (English, french) then dutch, it shows me this:
    !http://wouterverbruggen.be/img/datepicker.png(Date picker in unknown language)!

    Is it a bug, or did I do something wrong?

    Thanks in advance.

    File not found. Nobody leave the room!

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Woody
      wrote on last edited by
      #2

      Solved.

      You have to set a QLocale to the calendarWidget like this:
      @ui->dateBirthDate->calendarWidget()->setLocale(QLocale::English);@

      You have to do it for every language you have a translation for.

      File not found. Nobody leave the room!

      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