I've been working on a Qt/C++ project, using QtDbus, and am confused by a particular piece of syntax during my learning of the process. I've been reading this tutorial, and am wondering about the following piece of syntax in ChatWindow.cpp:
ChatWindow::ChatWindow(demo::Chat& chatInterface, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ChatWindow),
m_userName(),
m_users(),
m_chatInterface(chatInterface)
{
I'm wondering what the variables followed by () mean. I thought the : parent syntax was just for multiple class inheritance. I'm sure I'm missing something very simple, but hugely appreciate any input, as I don't even know what I should be trying to Google.
Thanks!