Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Problem in Arabic language  (Read 2671 times)

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Problem in Arabic language
« on: January 18, 2017, 12:10:20 PM »
Thank you for the great work on the LimeReport Project, but there are some problems.
1- QR Code object does not support Arabic letters, It shows instead "error: Invalid character in input data"
2- TextItem does not support "setLayoutDirection (Qt :: RightToLeft)"

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Problem in Arabic language
« Reply #1 on: January 18, 2017, 08:41:47 PM »
Hi !
Quote
1- QR Code object does not support Arabic letters, It shows instead "error: Invalid character in input data"
Try to change "inputMode" property of BarcodeItem maybe "DATA_INPUT_MODE" will ok for you

Quote
2- TextItem does not support "setLayoutDirection (Qt :: RightToLeft)"
Do you mean QApplication::setLayoutDirection(Qt :: RightToLeft)? How it should be? If you explain me what wrong i will try to fix it;

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Problem in Arabic language
« Reply #2 on: January 19, 2017, 01:37:45 AM »
Thanks for help.
You can add  "layoutDirection" property to TextItem and FieldItem like QLineEdit in Qt Creator.
Value= Qt :: RightToLeft and Qt :: LeftToRight
Like rtl.png Attachment file

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Problem in Arabic language
« Reply #3 on: January 21, 2017, 02:28:37 AM »
I have added textLayoutDirection property to TextItem and pushed it on github (branch 1.4)

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Problem in Arabic language
« Reply #4 on: January 21, 2017, 06:32:54 PM »
Thank you so much.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Problem in Arabic language
« Reply #5 on: January 22, 2017, 12:35:31 PM »
You are welcome