Qt Quick based coffee brewing control chart.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

newpointcontrol.cpp 750B

1234567891011121314151617181920212223
  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. layout->addStretch();
  21. setLayout(layout);
  22. }