本文整理汇总了C++中QColorDialog::open方法的典型用法代码示例。如果您正苦于以下问题:C++ QColorDialog::open方法的具体用法?C++ QColorDialog::open怎么用?C++ QColorDialog::open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QColorDialog
的用法示例。
在下文中一共展示了QColorDialog::open方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: openCurrentLineBgColorDialog
void FontSetupPage::openCurrentLineBgColorDialog()
{
QColorDialog *dialog = createColorDialog(INIMANAGER()->currentLineBgColor());
connect(dialog, SIGNAL(colorSelected(QColor)), this, SLOT(currentLineBgColorChanged(QColor)));
dialog->open();
}
示例2: openBackgroundColorDialog
void FontSetupPage::openBackgroundColorDialog()
{
QColorDialog *dialog = createColorDialog(INIMANAGER()->backgroundColor());
connect(dialog, SIGNAL(colorSelected(QColor)), this, SLOT(backgroudColorChanged(QColor)));
dialog->open();
}
示例3: pickColor
void WangColorView::pickColor()
{
QColorDialog *colorPicker = new QColorDialog(this);
colorPicker->setAttribute(Qt::WA_DeleteOnClose);
colorPicker->setCurrentColor(mClickedWangColor->color());
connect(colorPicker, &QColorDialog::colorSelected,
this, &WangColorView::colorPicked);
colorPicker->open();
}
示例4: mouseDoubleClickEvent
void ColorWidget::mouseDoubleClickEvent( QMouseEvent * event)
{
//printf("ColorWidget::mouseDoubleClickEvent:\n");
QColorDialog * dialog = new QColorDialog( clr->c, this);
dialog->setModal( false);
dialog->setOptions( QColorDialog::NoButtons);
connect( dialog, SIGNAL( currentColorChanged( const QColor &)), this, SLOT( currentColorChanged( const QColor &)));
connect( dialog, SIGNAL( finished( int )), this, SLOT( finished( int )));
Watch::repaintStart();
dialog->open();
// dialog->open( this, "accepted");
}
示例5: setColor
void WindowConfiguration_Data_PCI_SPHSystem::setColor()
{
QColorDialog *colorDialog = new QColorDialog();
connect(colorDialog,SIGNAL(currentColorChanged(QColor)),this, SLOT(changeData(QColor)));
colorDialog->open();
}
示例6: on_colorButton_clicked
void MainWindow::on_colorButton_clicked(bool checked)
{
QColorDialog *colorDialog = new QColorDialog();
colorDialog->open(this, SLOT(cambiarColor(QColor)));
}