ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

29 May 2021
2021-05-29×
29 May 2021
On Qml: is there anyway to limit an editable combobox to single digit and be able to search their items?
R
I have a sequence of "selectable" numbers and want to limit it to only them.
I
you meant single digit integers, right ?
R
For instance, I can have: 2, 7, 8, 8, 4, 6
I
validator: RegExpValidator { regExp: /[27846]+/ }
R
Right now, I'm playing with find. Using the edit text.
let hail = character_info.points_total.findIndex((element) => Number(editText) === element ) if (hail === -1) { editText = "" }
R
this on the event onEditTextChanged.
R
I don't like JS and its strange function and lambda (?) syntax. But this gives a feedback when typing wrong numbers. I still validate it on the backend, though.
I
Never liked JS either but in the context of QML i find it quite helpful, like it doesn't "get in the way"
Calendar: May 2021
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog