[Development] Stop insertion QTextEdit unicode character.

2016-05-08 Thread kang joni
I accidentally was clicking insert Unicode character menu in
QTextEdit. How to switch normal again to use ASCII character? I
couldn't type any ASCII Character after clicking
insert unicode character. My keyboard layout is US letter. And I
didn't saw any docs explaining this features in either QTextedit nor
QLineEdit?
thanks
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Stop insertion QTextEdit unicode character.

2016-05-08 Thread Thiago Macieira
On segunda-feira, 9 de maio de 2016 06:52:27 PDT kang joni wrote:
> I accidentally was clicking insert Unicode character menu in
> QTextEdit. How to switch normal again to use ASCII character? I
> couldn't type any ASCII Character after clicking
> insert unicode character. My keyboard layout is US letter. And I
> didn't saw any docs explaining this features in either QTextedit nor
> QLineEdit?

The question doesn't make sense.

First of all, you probably have the wrong list. This list is for discussion 
about development _of_ Qt, not _with_ Qt.

Second, what "insert Unicode character" menu? I don't see one.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Stop insertion QTextEdit unicode character.

2016-05-09 Thread kang joni
Sorry for my bad English, Quick grep-ing in qtbase 5.6
src/widgets/widgets/qwidgettextcontrol.cpp at line 3254 just found my
case here. I don't know how to use this. And I didnt aware any of docs
explaining this. If you right click on editable QLineEdit or QTextEdit
there should be "Insert Unicode control
character", sorry my former title was bit wrong typo here. So,  back
to my case whenever I type from ASCII and then accidentally clicking
from "Insert Unicode control
character" with any selecting LRM,RLM  ... etc I didn't know how to
switch back to type ASCI I character with exception close app window
and reopen it again, and everything would be normal again. This all
happen in all Qt apps.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Stop insertion QTextEdit unicode character.

2016-05-09 Thread Alexander Nassian
You see the condition in line 2288: d->interactionFlags & Qt::TextEditable) && 
QGuiApplication::styleHints()->useRtlExtensions()

So, right-to-left writing direction must be active and the input field must be 
editable. Are you using or do you need RTL writing? If not, you could just 
disable it as a quick fix. Maybe this context menu should be en-/disableable by 
the application developer? I don’t know enough about RTL systems, do they need 
this coding selection?


Beste Grüße / Best regards,
Alexander Nassian

> Am 09.05.2016 um 09:59 schrieb kang joni :
> 
> Sorry for my bad English, Quick grep-ing in qtbase 5.6
> src/widgets/widgets/qwidgettextcontrol.cpp at line 3254 just found my
> case here. I don't know how to use this. And I didnt aware any of docs
> explaining this. If you right click on editable QLineEdit or QTextEdit
> there should be "Insert Unicode control
> character", sorry my former title was bit wrong typo here. So,  back
> to my case whenever I type from ASCII and then accidentally clicking
> from "Insert Unicode control
> character" with any selecting LRM,RLM  ... etc I didn't know how to
> switch back to type ASCI I character with exception close app window
> and reopen it again, and everything would be normal again. This all
> happen in all Qt apps.
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Stop insertion QTextEdit unicode character.

2016-05-09 Thread Thiago Macieira
On segunda-feira, 9 de maio de 2016 14:59:16 PDT kang joni wrote:
>  If you right click on editable QLineEdit or QTextEdit
> there should be "Insert Unicode control
> character"

I don't see that option. Is that OS-specific?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Stop insertion QTextEdit unicode character.

2016-05-10 Thread Simon Hausmann
Hi,

It's dependent on the useRtlExtensions() hint in the style:

http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qwidgettextcontrol.cpp#n2286



Simon


From: Development  on 
behalf of Thiago Macieira 
Sent: Monday, May 9, 2016 6:14:26 PM
To: development@qt-project.org
Subject: Re: [Development] Stop insertion QTextEdit unicode character.

On segunda-feira, 9 de maio de 2016 14:59:16 PDT kang joni wrote:
>  If you right click on editable QLineEdit or QTextEdit
> there should be "Insert Unicode control
> character"

I don't see that option. Is that OS-specific?

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development