【发布时间】:2013-09-22 21:14:24
【问题描述】:
我一直在使用 QtDbus 处理 Qt/C++ 项目,在学习过程中对特定的语法感到困惑。我一直在阅读this tutorial,并且想知道 ChatWindow.cpp 中的以下语法:
ChatWindow::ChatWindow(demo::Chat& chatInterface, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ChatWindow),
m_userName(),
m_users(),
m_chatInterface(chatInterface)
{
我想知道 () 后面的变量是什么意思。我认为 : 父语法仅用于多类继承。我确定我遗漏了一些非常简单的东西,但非常感谢任何输入,因为我什至不知道我应该向 Google 尝试什么。
谢谢!
【问题讨论】:
标签: c++ qt variables inheritance