Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Question about structuring my app



  • Hey there

    My app has a class called browseTab that contains a QWebView that loads web pages. I would like to interact with the web pages with JavaScript, much like the fancy browser example. However, the browseTab class file is getting a bit large to handle (~700 lines). I would like to create a new class called JSIntegration that contains all the functions necessary to integrate with the JS. The problem is that the QWebView that has the web pages to be worked with is located in a different class then the functions to interact with the JS.

    Should I place all the functions to integrate with the JS in their own class? if so how can I integrate that class's functions with the QWebView?
    Or should I put a bunch of new functions in an already sizable class?


Log in to reply