Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Question about structuring my app

Question about structuring my app

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 391 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved