qq_36254001 2019-05-15 18:25
浏览 207

求助!!!求大神帮解决

求助!!!为什么会出现Test.exe 中的 0x00000001 处有未经处理的异常: 0xC0000005: Access violation 这个问题 求大神帮解决

代码如下:

void CRemotePage::OnSearch()//搜索 要求:PubName PriName Address 三种类型都能查询到该设备
{
QString strText = m_edtSearch.text(); // 获取输入文字
{
int iCount = m_wndListWidget.count();
QListWidgetItem * pItem = NULL;

    //pItem->setData(Qt::DisplayRole, false);//背景初始化

    for (int i = 0; i < iCount; ++i)
    {
        pItem = m_wndListWidget.item(i);
    }
    for (int i = 0; i < iCount; ++i)
    {
        std::string str1 = strText.toStdString();
        std::string str2 = pItem->text().toStdString();
        if (strstr(str2.c_str(), str1.c_str()) && (str1.size() != NULL))
        {
            pItem->setData(Qt::DisplayRole, true);//高亮
        }
    }
}

}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
    • ¥15 gradio的web端页面格式不对的问题
    • ¥15 求大家看看Nonce如何配置
    • ¥15 Matlab怎么求解含参的二重积分?
    • ¥15 苹果手机突然连不上wifi了?
    • ¥15 cgictest.cgi文件无法访问
    • ¥20 删除和修改功能无法调用
    • ¥15 kafka topic 所有分副本数修改
    • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
    • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?