Qt Quick based coffee brewing control chart.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

newpointcontrol.cpp 701B

123456789101112131415161718192021
  1. #include <QBoxLayout>
  2. #include <QFormLayout>
  3. #include <QLineEdit>
  4. #include <QPushButton>
  5. #include "newpointcontrol.h"
  6. NewPointControl::NewPointControl(QWidget *parent) :
  7. QWidget(parent)
  8. {
  9. QVBoxLayout *layout = new QVBoxLayout;
  10. QFormLayout *flayout = new QFormLayout;
  11. QLineEdit *groundsMass = new QLineEdit;
  12. QLineEdit *brewMass = new QLineEdit;
  13. QLineEdit *tds = new QLineEdit;
  14. QPushButton *plot = new QPushButton(tr("Plot"));
  15. flayout->addRow(tr("Mass of ground coffee:"), groundsMass);
  16. flayout->addRow(tr("Mass of brewed coffee:"), brewMass);
  17. flayout->addRow(tr("% total dissolved solids:"), tds);
  18. layout->addLayout(flayout);
  19. layout->addWidget(plot);
  20. }