远方是什么样子 2020-07-11 11:52 采纳率: 0%
浏览 439

[Qt]请问 信号的类型为啥不能是std::vector<QString>的?

QObject::connect(pManager, SIGNAL(sglSendAllUseblePortName(std::vector)), this, SLOT(sltGetAllUseblePortName(std::vector)), Qt::QueuedConnection);

  • 写回答

3条回答 默认 最新

  • qtchen_1988 2020-07-13 17:53
    关注
    
    connect(pManager, SIGNAL(sglSendAllUseblePortName(std::vector)), this, SLOT(sltGetAllUseblePortName(std::vector)), Qt::QueuedConnection);
    
    改成:
    
     connect(pManager, SIGNAL(sglSendAllUseblePortName(std::vector<QString> )), this, SLOT(sltGetAllUseblePortName(std::vector<QString> )), Qt::QueuedConnection);
    
    评论

报告相同问题?