Thread: mbarcode
View Single Post
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#327
Originally Posted by joshn53 View Post
My thinking was that if it's really a "plugin", it shouldn't be accessing anything from the class (yes, it needs to connect to the barcodeDecoded function, but that doesn't need to pointer; that's the magic of Qt's slots/signals.)

At least, none of the current plugins require anything from the MainWindow class...
You're right about that there are no plugins using anything but the signal as of now, I just thought it could be useful for some plugins to have access to more data from there. I might be wrong, though

How would you go about and do the connection without passing down a MainWindow class pointer? Is it enough with the QWidget* to do that?