From f49da62379f211236eab384d6b68dc7156514ee9 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Thu, 11 Sep 2025 18:09:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D1=81=D1=81=D0=B5=D0=BD=D0=B4?= =?UTF-8?q?=D0=B6=D0=B5=D1=80=20=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=20?= =?UTF-8?q?=D0=B5=D1=89=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- InstructorsAndTrainees/messanger/msgwidget.cpp | 2 +- InstructorsAndTrainees/messanger/msgwidget.ui | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/InstructorsAndTrainees/messanger/msgwidget.cpp b/InstructorsAndTrainees/messanger/msgwidget.cpp index 2e953bd..d01c711 100644 --- a/InstructorsAndTrainees/messanger/msgwidget.cpp +++ b/InstructorsAndTrainees/messanger/msgwidget.cpp @@ -91,7 +91,7 @@ void MsgWidget::on_editText_textChanged() if(textRect.width() > widthEdit) {//Не помещается в одну строку - textRect = metricsFont.boundingRect(QRect(0, 0, widthEdit, 1000), 0, text); + textRect = metricsFont.boundingRect(QRect(0, 0, widthEdit, 1000), Qt::TextWordWrap, text); if(textRect.width() > widthEdit) { diff --git a/InstructorsAndTrainees/messanger/msgwidget.ui b/InstructorsAndTrainees/messanger/msgwidget.ui index 417131a..bacab8c 100644 --- a/InstructorsAndTrainees/messanger/msgwidget.ui +++ b/InstructorsAndTrainees/messanger/msgwidget.ui @@ -7,7 +7,7 @@ 0 0 400 - 233 + 236 @@ -89,6 +89,9 @@ QAbstractScrollArea::AdjustIgnored + + true +