双缓冲先加上

This commit is contained in:
2026-08-11 17:48:32 +08:00
parent 542637ede4
commit 0327d71536
31 changed files with 1605 additions and 2248 deletions
+4 -4
View File
@@ -24,10 +24,10 @@ TEST(Renderive_Qt, WidgetLifecycleDrivesAndStopsKernelScene) {
.set_pixel_length(90)
.set_coord_range({1.0, 0.0})
.build();
auto spectrum = Spectrum::Builder(plot.root_renderable(), x_axis, y_axis)
.set_frequency_range({0.0, 10.0})
.set_frequency_point_size(8)
.build();
auto spectrum = Spectrum::Builder{}
.set<&Spectrum::Properties::frequency_range>(Range{0.0, 10.0})
.set<&Spectrum::Properties::frequency_point_size>(8)
.build(plot.root_renderable(), x_axis, y_axis);
spectrum->update_samples(std::vector<double>{0.1, 0.3, 0.8, 0.5, 0.9, 0.4, 0.2, 0.7});
plot.show();
QTimer::singleShot(150, application, &QCoreApplication::quit);