Projects based on Qt → How 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.
In general, QpTableView is the name of our class. Allows you to display columns of the data model …
Qt → Qt/C++ - Tutorial 091. How to write a custom delegate controlling the highlighting of a row in a table
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 …
Qt → Printing 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:
- void FinalPage::on_pushButtonPrint_clicked()
- {
- int width = 0;
- int height = 0;
- int …
Qt → QCheckBox 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 …
Qt → Qt/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 …
Qt → Qt/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 …
- Last comments
- AKApril 1, 2025, 11:41 a.m.Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
- VPMarch 9, 2025, 4:14 p.m.Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
- ИМNov. 22, 2024, 9:51 p.m.Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
- Now discuss on the forum
- МАApril 1, 2025, 4:21 p.m.0ff763fe-4e50-455d-a3a6-5699c243b1a5_17_44_22_1.xml
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…