Hi, it´s my first post in the forum. I´m a newbie and I think the question is more about C++ than Qt.
Well, I have a class "Alarmer" inherits from QWidget; it's a popup. I need to add, as a member of Alarmer, a QSound instance, to have scope of visibility from all the member functions of Alarmer. I try to use it to call play() and stop() from different member functions.
So, I add this line to the .h file:
QSound alarm;But I don't know how to initialize it in the constructor of "Alarmer". I try with different options without result.
I hope you can help me,
MartÃ*n
Bookmarks