I have programmed a class like this:
class WindowsTextEditor : public QHBoxLayout
To copy to clipboard, switch view to plain text mode
and with a constructor, and other functions that i need. This class works fine, but i need to send a message from this class to ask if you want to save a file or not. I have used this (in the constructor or into other functions):
"Do you want to save...?",
int ret=QMessageBox::question(this,"Programm",
"Do you want to save...?",
QMessageBox::Yes | QMessageBox::Default,
QMessageBox::No | QMessageBox::Escape);
To copy to clipboard, switch view to plain text mode
But i get this error:
error C2665: 'QMessageBox::question' : none of the 4 overloads can convert parameter...
How can i call QMessageBox from this class (WindowsTextEditor : public QHBoxLayout)?


Thanks
Bookmarks