On Screen Keyboard Display Issue

More
6 years 1 day ago #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 to join the conversation.

More
6 years 1 day ago #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 to join the conversation.

More
6 years 1 day ago #187763 by phillc54

Grotius wrote: 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 to join the conversation.

More
6 years 23 hours ago #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):
Code:
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:
Code:
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

Please Log in to join the conversation.

More
6 years 23 hours ago #187786 by phillc54

cmorley wrote: 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):

Code:
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:
Code:
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 to join the conversation.

More
6 years 23 hours ago #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.

Please Log in to join the conversation.

More
6 years 22 hours ago #187790 by cmorley
fixed

Please Log in to join the conversation.

More
6 years 3 hours ago #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

Please Log in to join the conversation.

More
5 years 11 months ago #187988 by cmorley
What code did you use to change the font on initialization?

Please Log in to join the conversation.

More
5 years 11 months ago #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 to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum