//显示详细数据= void MainWindow::on_tableWidget_cellDoubleClicked(int row, int column) { RingBufferForm* form = new RingBufferForm(); form->setWindowFlags(Qt::Window); form->init(ui->tableWidget->item(row, 0)->text()); form->show(); }
void TickForm::on_pushButtonTick_clicked() { QString symbol = ui->lineEditSymbol->text(); QString exchange = ui->lineEditExchange->text(); if (symbol.length() != 0 && exchange.length() != 0) { RingBufferForm* form = new RingBufferForm(); form->setWindowFlags(Qt::Window); form->init(symbol, exchange); centerWindow(form); form->show(); } }