![]() Registered Member ![]()
|
I have been writing a sddm theme and it all works fine except I
can't get the focus to go to the user_entry box to start. I have import QTQuick 2.0 import SddmComponents 2.0 Rectangle { etc etc etc Component.onCompleted: { user_entry.focus = true } } Can anyone tell me what I've done wrong Ta Mal |
![]() Registered Member ![]()
|
I had the same problem with my theme. After some searching i found this: https://bugs.kde.org/show_bug.cgi?id=337079 So i changed the code which sets the user_entry field in my Main.qml like this:
And it works fine for me ! ![]() Best regards susejunky |
![]() Registered Member ![]()
|
Magic , I'll give it a go in a day or so
Thanks Mal |
![]() Registered Member ![]()
|
Hmmm...
Finally got around to trying this and I just get a white screen ![]() Mal |
![]() Registered Member ![]()
|
Sorry, i am no expert with all this and created my theme just by looking at the themes provided with sddm and reading some of the QT5 docu. So my capabilities to support you are rather limited. Do you get any errors messages, when you test your theme in a console ?
Probably you are missing some "includes". Here are the ones i have in my "Main.qml:
Finally here the exact peace of code i have in my "Main.qml" to define the user entry field
Best regards susejunky |
![]() Registered Member ![]()
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]