zoukankan      html  css  js  c++  java
  • qt tableview 选择模式

    QAbstractItemView::SingleSelection

    QAbstractItemView::ContiguousSelection

    QAbstractItemView::ExtendedSelection

    QAbstractItemView::MultiSelection

    QAbstractItemView::NoSelection



    单选       只能有一个项目被选中
    连续选      只能够被连续选中,例如按下shift后的效果
    拓展选      效果和ContiguousSelection一样,同时支持按键支持其他功能,ctrl,shift
    多选       效果和按着ctrl一样,当你单击一个项目,再单击另外项目,之前的那条不会被取消选中
    无法选中     无法被选中

    ui->tableView_showExecuteInfo->setSelectionMode(QAbstractItemView::MultiSelection);
    
    ui->tableView_showExecuteInfo->setSelectionBehavior(QAbstractItemView::SelectRows);


       

  • 相关阅读:
    HTML笔记
    html文本格式化
    标题大小与字体大小的关系
    html学习笔记
    冒泡排序
    直接插入算法
    绘制针状图
    绘制矢量图
    饼图pie 或者pie3
    三维直方图
  • 原文地址:https://www.cnblogs.com/liujx2019/p/10419060.html
Copyright © 2011-2022 走看看