It was difficult for me to search for a relevant topic, so here is my question. I started using Qt like two days ago, and therefore I don’t know how to make it work (on the code side).
[offtopic] Here is some story: at first I thought about how to separate my applied logic from its appearance. I had some basic classes, others for the graphical interface (display and control) and some “bridges” between, for example, moving data from class A, in which there were std :: list elements for class B: public QAbstractListView, which is QStringList. But I gave up when I had to use more and more Qt code (HTTP requests, disk I / O, regular expressions). My code began to look like a mess, and I was thinking about reorganizing my code.
(In any case, is it a good idea to combine these two things - the application logic into Qt (sub) classes?) [/ Offtop]
And I came up with another problem, and this, finally, is related to the question in the topic: it is better (say, Qt-way), for example, to have a class with a private member QWebPage and some public methods, slots and signals to work on it, or just add my functionality in a subclass of QWebPage?
source
share