Павел Дорофеев
Oct. 29, 2023, 12:46 a.m.

Projects based on QtHow to write your own QTableView

Qt, C++, QTableView

The topic is interesting and there is already a ready-made open project. It's still a beta version.

Short video on YouTube

github.com

In general, QpTableView is the name of our class. Allows you to display columns of the data model …

Read
Evgenii Legotckoi
June 4, 2020, 3:30 a.m.

QtQt/C++ - Tutorial 091. How to write a custom delegate controlling the highlighting of a row in a table

Qt, QTableView, Delegate

And now a short article on customizing cell behavior using delegates in a QTableView.
This article is a modification of the table behavior in one old article, namely Qt/C ++ - Tutorial 039. How to fill a row in QSqlTableModel …

Read
Ruslan Polupan
June 12, 2019, 7:05 p.m.

QtPrinting the exact contents of a QTableView (QTableWidget)

QPrintPreviewDialog, QTableView, print, QTableWidget, Qt

Good day.
Again as a note.
There was a need to print an exact copy of the contents of QTableWidget with delegates, etc.
It turned out the following:


  1. void FinalPage::on_pushButtonPrint_clicked()
  2. {
  3.  
  4. int width = 0;
  5. int height = 0;
  6. int
Read
Ruslan Polupan
April 11, 2019, 4:01 p.m.

QtQCheckBox as QTableView delegate

Delegate, qcheckbox, qcheckbox center, QTableView

Good day.
There was a need to use a delegate to display QCheckBox in the table (to select objects from the list for subsequent work with them).
In order to deal with the delegates, I created a small project.
At …

Read
Evgenii Legotckoi
June 15, 2017, 12:58 p.m.

QtQt/C++ - Tutorial 067. Using QMultiMap for a dictionary of synonyms

Qt, QMultiMap, QTableView, QStandardItemModel

QMultiMap is a class inherited from QMap, which allows you to store multiple values for a single key. That is, the key can be repeated. This class can be used, for example, to represent a dictionary of synonyms.

Let's write …

Read
Evgenii Legotckoi
Aug. 28, 2016, 9:08 p.m.

QtQt/C++ - Lesson 054. Reading data from a CSV file, and their representation via QStandardItemModel

CSV, Qt, QTableView, QStandardItemModel

CSV data format ( Comma-Separated Values ) format is the simplest representation of tabular data. This format is supported by Excel and many other office suites. For example, I often encounter this format when uploading statistics do the site of …

Read
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup