Answer the question
In order to leave comments, you need to log in
How to implement navigation on anchors and links in QT?
I'm building a bible reading and navigation app.
The Bible is divided into books, chapters, verses and stored in a virtual FTS5 SQLite database table.
1 Text QML page is generated per chapter.
I'm trying to develop an application in QML. I am new to QT and C++.
Faced a problem:
I do not know how to make an automatic transition to a specific verse. If the user needed the hundredth verse of Psalm 118, he pressed the button and the chapter opened on that verse. You need to automatically turn the page to the desired verse.
In the web, everything is very simple - there are anchors and javascript. Is it possible to organize this using QML tools or is it done only by widgets? If so, how?
Answer the question
In order to leave comments, you need to log in
Why suck it out of your finger if you can see how experienced comrades did it?
For example, GoldenDict is an open source Qt dictionary. The author had to solve the same problems, and he still did well. Just see how.
In order to intercept - you can use this signal .
By the way, why not the web? It doesn't matter if electron or QWebEngine. If you know him well, you know how to solve the problem on him.
On QML, I would make each verse in the database a separate entry, load it from the database into the model , and display the list - then it would be possible to go to the right one, process links, etc. whatever, but what will happen to performance with this approach, if you need to display and store hundreds of thousands of records - I don’t know.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question