Subclassing QWebView?

  • Hi all,

    I have a gui application where I have a QWebView on the form. I have a separate class which is initiated in MainWindow constructor. However, my project is becoming bigger now and currently I need to connect signals coming from my class to the MainWindow. For example, I have a signal slot to to setUrl of the QWebView from my class. This works ok but now I am thinking of setting it directly because it is now more often that I need to reach some variables in the MainWindow class.

    I didn't expect that my project will grow that much but I would like to change it to a proper way, like subclassing QWebView if it is the most convenient way. Could anyone tell me what the best option is?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.