A
A
Anton Misyagin2020-05-24 13:45:02
Qt
Anton Misyagin, 2020-05-24 13:45:02

Is it possible to cross QWidgets and QML components in the same application?

QT5.9.9 Good afternoon. It was necessary to use cpp components in one application that is written in qml. It was necessary to add a code editing mode to the finished application with a complex qml interface, i.e. when you click on the button, a text editor with syntax highlighting, line numbering and other goodies should be displayed in full screen. This component was implemented in qml. But its performance is very low. Those. a text file of half a megabyte is very slow. An example from the QT library called QT Quick Controls 2 - Text Editor has been opened. This is a demo of a text editor written in qml. This example shows that brakes appear even before syntax highlighting and other things. It turns out that it is impossible to make this feature normal on qml, well, either the computer lacks any graphic libraries from which everything slows down so much on a simple text file. On the other hand, there are two more examples in the library that are written without qml and work with good performance on the same computer. One is called Application Example, the second is Code Editor Example. Is it possible, if not to cross qml and c++, then switch between two application modules. One module is the entire interface, the second is a text editor based on blue visual components. Or is there some kind of trick in setting the qml performance of the text component? Everything rested, there is no time and effort to rewrite all qml developments completely under c ++. Advise options that I have, please. which are written without qml and work with good performance on the same machine. One is called Application Example, the second is Code Editor Example. Is it possible, if not to cross qml and c++, then switch between two application modules. One module is the entire interface, the second is a text editor based on blue visual components. Or is there some kind of trick in setting the qml performance of the text component? Everything rested, there is no time and effort to rewrite all qml developments completely under c ++. Advise options that I have, please. which are written without qml and work with good performance on the same machine. One is called Application Example, the second is Code Editor Example. Is it possible, if not to cross qml and c++, then switch between two application modules. One module is the entire interface, the second is a text editor based on blue visual components. Or is there some kind of trick in setting the qml performance of the text component? Everything rested, there is no time and effort to rewrite all qml developments completely under c ++. Advise options that I have, please. the second is a text editor based on sish visual components. Or is there some kind of trick in setting the qml performance of the text component? Everything rested, there is no time and effort to rewrite all qml developments completely under c ++. Advise options that I have, please. the second is a text editor based on sish visual components. Or is there some kind of trick in setting the qml performance of the text component? Everything rested, there is no time and effort to rewrite all qml developments completely under c ++. Advise options that I have, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-05-24
@SaNNy32

https://stackoverflow.com/questions/13014415/qt5-e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question