Re: [Interest] all caps font on android 8

2018-04-14 Thread ekke
I got similar reports for my QtQuickControls2 apps on Android
But in my case only TextFields always show Uppercase while entering text

Long time I built my Android Apps for Android6(SDK23).
Now after building for Android 8 and Qt 5.10.1 some reports are coming in
It seems it depends from the Device or Keyboard installed
Some - but not all - Samsung users are reporting this.

For Samsung I found this:
https://us.community.samsung.com/t5/Other-Mobile-Devices/After-the-latest-update-the-Samsung-keyboard-capitalizes-every/m-p/264634/highlight/true#M9860

>From that Samsung discussion found a workaround:
In Android Settings Keyboard Switch OFF AutoCapitalize

or from
http://doc.qt.io/qt-5/qml-qtquick-controls-textfield.html#inputMethodHints-prop

InputMethodHint "Qt.ImhNoAutoUppercase"
also helped.

But then there's no auto uppercase for sentences.

Or try to install another Keyboard Google G-board should be ok, also
many of my users have installed BlackBerry Keyboard, which also works
well on Qt 5.10.1 and Android8

@maitai don't know if this will help with QWidgets - I'm only developing
QtQuickControls2 apps


Am 14.04.18 um 08:39 schrieb Christoph Keller:
> Hi Philippe,
>
> I received the same bug report from a user. Have you found a
> solution/cause? I haven't found anything by googling around, just your
> mailing list entry.
>
> Just for the statistics: QtQuickControls 2 application with Qt 5.10.1;
> User has a OnePlus 3 running Android 8.0.0. Other 8.x devices from
> Sony or Google Pixel don't show this bug.
>
> Greetings,
> Christoph
>
>
> On 14.02.18 22:43, maitai wrote:
>> Hi all,
>>
>> I have a user complaining that all fonts (dialog, QGraphicsScene,
>> etc) are in capital letters on Android 8
>>
>> It's a QWidget-based application, qt 5.9.4
>>
>> I have send him some attempts to correct this, in other words forcing
>> each and every setFont with a font set with
>> setCapitalization(QFont::MixedCase);
>>
>> Same result, all fonts are capitalized.
>>
>> At start I force (in java) theme to be
>> "Theme_Holo_NoActionBar_Fullscreen"
>>
>> Is it linked to Android 8 (which I don't have here) ? Any idea?
>>
>> Philippe.
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>

-- 

ekke (ekkehard gentz)

independent software architect
international development native mobile business apps
BlackBerry 10 | Qt Mobile (Android, iOS)
workshops - trainings - bootcamps

*Qt Champion
BlackBerry Elite Developer
*
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:e...@ekkes-corner.org
my blog: http://ekkes-corner.org
app development blog: http://appbus.org

twitter: @ekkescorner
LinkedIn: http://linkedin.com/in/ekkehard/
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] all caps font on android 8

2018-04-13 Thread maitai

Hi Christoph,

I am afraid I don't remember all the details but I think I ended up 
adding a font dialog in the app main settings, and the user succeeded to 
find a more suitable font.


I can also see in my code stuff like

QFont def = qApp->font();
if(!Settings::getSetting(defaultFontName).toString().isEmpty())
def = QFont(Settings::getSetting(defaultFontName).toString());
def.setHintingPreference(QFont::PreferNoHinting);
def.setPixelSize(QFontInfo(fapp).pixelSize());
def.setCapitalization(QFont::MixedCase);
QApplication::setFont(def);
QApplication::setFont(def, "QWidget"); //important

which as I remember are coming from that story.

Hope that helps,
Philippe.

Le 14-04-2018 08:39, Christoph Keller a écrit :

Hi Philippe,

I received the same bug report from a user. Have you found a
solution/cause? I haven't found anything by googling around, just your
mailing list entry.

Just for the statistics: QtQuickControls 2 application with Qt 5.10.1;
User has a OnePlus 3 running Android 8.0.0. Other 8.x devices from
Sony or Google Pixel don't show this bug.

Greetings,
Christoph


On 14.02.18 22:43, maitai wrote:

Hi all,

I have a user complaining that all fonts (dialog, QGraphicsScene, etc) 
are in capital letters on Android 8


It's a QWidget-based application, qt 5.9.4

I have send him some attempts to correct this, in other words forcing 
each and every setFont with a font set with 
setCapitalization(QFont::MixedCase);


Same result, all fonts are capitalized.

At start I force (in java) theme to be 
"Theme_Holo_NoActionBar_Fullscreen"


Is it linked to Android 8 (which I don't have here) ? Any idea?

Philippe.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] all caps font on android 8

2018-04-13 Thread Christoph Keller

Hi Philippe,

I received the same bug report from a user. Have you found a 
solution/cause? I haven't found anything by googling around, just your 
mailing list entry.


Just for the statistics: QtQuickControls 2 application with Qt 5.10.1; 
User has a OnePlus 3 running Android 8.0.0. Other 8.x devices from Sony 
or Google Pixel don't show this bug.


Greetings,
Christoph


On 14.02.18 22:43, maitai wrote:

Hi all,

I have a user complaining that all fonts (dialog, QGraphicsScene, etc) 
are in capital letters on Android 8


It's a QWidget-based application, qt 5.9.4

I have send him some attempts to correct this, in other words forcing 
each and every setFont with a font set with 
setCapitalization(QFont::MixedCase);


Same result, all fonts are capitalized.

At start I force (in java) theme to be 
"Theme_Holo_NoActionBar_Fullscreen"


Is it linked to Android 8 (which I don't have here) ? Any idea?

Philippe.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] all caps font on android 8

2018-02-14 Thread maitai

Hi all,

I have a user complaining that all fonts (dialog, QGraphicsScene, etc) 
are in capital letters on Android 8


It's a QWidget-based application, qt 5.9.4

I have send him some attempts to correct this, in other words forcing 
each and every setFont with a font set with 
setCapitalization(QFont::MixedCase);


Same result, all fonts are capitalized.

At start I force (in java) theme to be 
"Theme_Holo_NoActionBar_Fullscreen"


Is it linked to Android 8 (which I don't have here) ? Any idea?

Philippe.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest