View Single Post
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#2
Firstly, I would recommend you to ask generic Qt-questions elsewhere. For example, you would get a much quicker and more accurate answer if you asked at http://stackoverflow.com.

About your question:
You are completely right about the signals/slots system.

About the things suffixed with "Event":
They are usually virtual methods of certain classes that you can override to provide custom logic.

For example:
Code:
void MyWindow::resizeEvent(QResizeEvent *event)
{
    QMainWindow::resizeEvent(event);
    
    if (width() > height())
    {
        //  set your UI to landscape
    }
    else
    {
        // set your UI to portrait
    }
}
So, these are not so much "events" as in the C# / .NET nomenclaure.
But you get the point.

Last edited by Venemo; 2010-06-11 at 15:07.