DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::DAPyDTypeComboBox类 参考

dtype选择器 此combox构建时默认插入如下信息: 更多...

#include <DAPyDTypeComboBox.h>

类 DA::DAPyDTypeComboBox 继承关系图:

Public 槽

void setCurrentDType (const DAPyDType &dt)
 设置当前的dtype
 

信号

void currentDTypeChanged (const DAPyDType &dt)
 当前选择的dtype改变信号
 

Public 成员函数

 DAPyDTypeComboBox (QWidget *parent=nullptr)
 
DAPyDType selectedDType () const
 获取当前选中的dtype
 

静态 Public 成员函数

static QIcon getIconByDtypeChar (char c)
 通过numpy.char获取图标
 

详细描述

dtype选择器 此combox构建时默认插入如下信息:

addItem(tr("float64"), "d");
addItem(tr("float32"), "f");
addItem(tr("float16"), "e");
insertSeparator(count());
addItem(tr("int64"), "q");
addItem(tr("uint64"), "Q");
addItem(tr("int32"), "l");
addItem(tr("uint32"), "L");
addItem(tr("int16"), "h");
addItem(tr("uint16"), "H");
addItem(tr("int8"), "b");
addItem(tr("uint8"), "B");
insertSeparator(count());
addItem(tr("str"), "U");
insertSeparator(count());
addItem(tr("bool"), "?");
insertSeparator(count());
addItem(tr("complex64"), "F");
addItem(tr("complex128"), "D");
insertSeparator(count());
addItem(tr("datetime64"), "M");
addItem(tr("timedelta64"), "m");
insertSeparator(count());
addItem(tr("bytes"), "S");
addItem(tr("object"), "O");

成员函数说明

◆ currentDTypeChanged

void DA::DAPyDTypeComboBox::currentDTypeChanged ( const DAPyDType dt)
signal

当前选择的dtype改变信号

参数
dt

◆ getIconByDtypeChar()

QIcon DAPyDTypeComboBox::getIconByDtypeChar ( char  c)
static

通过numpy.char获取图标

参数
c
返回

◆ selectedDType()

DAPyDType DAPyDTypeComboBox::selectedDType ( ) const

获取当前选中的dtype

返回

◆ setCurrentDType

void DAPyDTypeComboBox::setCurrentDType ( const DAPyDType dt)
slot

设置当前的dtype

此操作将会发射currentDTypeChanged信号

参数
dt

该类的文档由以下文件生成: