From 9e9195b34e51220ca89d836e1282bc27fb554d4b Mon Sep 17 00:00:00 2001 From: Andy Huska Date: Mon, 19 Sep 2022 16:13:30 -0500 Subject: [PATCH] changed default data table font to be fixed-width for easier reading --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 4617956..a77ea1f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -55,7 +55,7 @@ MainWindow::MainWindow(QWidget *parent) : verticalHeader->setSectionResizeMode(QHeaderView::Fixed); QSettings settings; int fontSize = settings.value("Main/FontSize", 9).toUInt(); - QFont sysFont = QFont(); //get default font + QFont sysFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); //get default font sysFont.setPointSize(fontSize); verticalHeader->setDefaultSectionSize(sysFont.pixelSize()); ui->canFramesView->setFont(sysFont);