On Screen Keyboard Display Issue

More
30 Oct 2020 07:01 #187756 by phillc54
#1. Using the onscreen keyboard for MDI shows up some odd but consistant behaviour:

Warning: Spoiler!


#2. Is it possible to style the onscreen keyboard or use an overlay with it?

#3. I have been able to customize most of the GcodeDisplay/GcodeEditor to suit what I want but I am having a devil of a time with the fonts. I can change the font color/size on the margin and the body at initialisation. As soon as a file is loaded then the size reverts to some default value. I can then change the margin font color dynamically but not the body font color. Any suggestions?

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 08:47 #187759 by Grotius
Hi Phill,

Maybe it has to do with anchor position, This property was introduced in QtQuick.VirtualKeyboard 2.2.

doc.qt.io/qt-5/qml-qtquick-virtualkeyboa...#anchorPosition-prop
doc.qt.io/qt-5/qtquick-positioning-anchors.html

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 09:45 #187763 by phillc54

Hi Phill,

Maybe it has to do with anchor position, This property was introduced in QtQuick.VirtualKeyboard 2.2.

doc.qt.io/qt-5/qml-qtquick-virtualkeyboa...#anchorPosition-prop
doc.qt.io/qt-5/qtquick-positioning-anchors.html

I don't even know what qtquick is. So far I have found qt a real rabbit hole but I have so much time invested in it that I need to keep going.

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 11:36 #187785 by cmorley
The softimputwidget does have code for positioning the window when displayed - ill have to dig into that.
This soft input widget was built early in the project and maybe using a regular qtvcp dialog (that can remember position) would be better.

this is the stock style of the softinputwidget )it's a Qdialog):
SoftInputWidget {
font-weight: bold;
color: #333;
border: 2px solid #555;
border-radius: 15px;
padding: px;
background: qradialgradient(cx: 0.3, cy: -0.4,
fx: 0.3, fy: -0.4,
radius: 1.35, stop: 0 #fff, stop: 1 #888);
min-width: 30px;
}

there is also style for the pushbuttons:
MyFlatPushButton {
font-weight: bold;
color: #333;
border: 2px solid #555;
border-radius: 11px;
padding: px;
background: qradialgradient(cx: 0.3, cy: -0.4,
fx: 0.3, fy: -0.4,
radius: 1.35, stop: 0 #fff, stop: 1 #888);
min-width: 30px;
}
Hopefully that is helpful.

I'll have to look into the font problem. the editor is certainly a pain style wise.

Chris
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 11:48 #187786 by phillc54

The softimputwidget does have code for positioning the window when displayed - ill have to dig into that.
This soft input widget was built early in the project and maybe using a regular qtvcp dialog (that can remember position) would be better.

Yeah it is really odd, there are two other permutations of thisGUI where it woks perfectly well. They have the MDI widget on the left side of the GUI. If it is too difficult I can move the GcodeDisplay widget to the the right hand side.


this is the stock style of the softinputwidget )it's a Qdialog):

SoftInputWidget {
font-weight: bold;
color: #333;
border: 2px solid #555;
border-radius: 15px;
padding: px;
background: qradialgradient(cx: 0.3, cy: -0.4,
fx: 0.3, fy: -0.4,
radius: 1.35, stop: 0 #fff, stop: 1 #888);
min-width: 30px;
}

there is also style for the pushbuttons:
MyFlatPushButton {
font-weight: bold;
color: #333;
border: 2px solid #555;
border-radius: 11px;
padding: px;
background: qradialgradient(cx: 0.3, cy: -0.4,
fx: 0.3, fy: -0.4,
radius: 1.35, stop: 0 #fff, stop: 1 #888);
min-width: 30px;
}
Hopefully that is helpful.

Thanks, I'll have a play in the morning.


I'll have to look into the font problem. the editor is certainly a pain style wise.

Yep, you are not wrong there. :)

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 12:21 - 30 Oct 2020 12:34 #187789 by Grotius
Hi Chris,

For info, gscreen has a infinit terminal output if i start it with a rip install :
spindle bar err-->>> No widget 's_display2'
spindle bar err-->>> No widget 's_display2'
spindle bar err-->>> No widget 's_display2'
spindle bar err-->>> No widget 's_display2'
spindle bar err-->>> No widget 's_display2'
spindle bar err-->>> No widget 's_display2'

Phill,

If you share your current source code, i can simulate your problem, and maybe help a bit.
Last edit: 30 Oct 2020 12:34 by Grotius.

Please Log in or Create an account to join the conversation.

More
30 Oct 2020 12:53 #187790 by cmorley
fixed
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
31 Oct 2020 07:39 #187865 by phillc54
Doh, I just worked out that the onscreen keyboard is entry_widget.py :blush:

I have put it on Github if you want to take a look.

github.com/phillc54/qtplasmac
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
01 Nov 2020 04:59 #187988 by cmorley
What code did you use to change the font on initialization?

Please Log in or Create an account to join the conversation.

More
01 Nov 2020 05:56 #187991 by Grotius
Hi Phill,

I submitted a little issue on github. Have a look. I would like to test your version today !

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.091 seconds
Powered by Kunena Forum