Qt → Qt / C ++ - Tutorial 072. An example of a vector editor on Qt
QGraphicsItem, QGraphicsScene, QGraphicsView, Vector Editor, QGraphicsObject
Quite often there are questions in one way or another related to the work of the graphic scene, with custom figures, drawing lines on the graphic scene, and even all sorts of broken lines. And then I remembered about one …
Qt → Qt/C++ - Lesson 045. SvgReader on the Qt. Loading data from SVG file into QGraphicsScene
Svg Reader, SVG, Qt, QGraphicsScene
In the last article I was considered an example of how to save objects in a graphical scene SVG file, and then we were able to open it in CorelDraw. Now try the same file open and restore the graphics …
Qt → Qt/C++ - Lesson 044. Saving objects from QGraphicsScene into SVG
SVG, Qt, CorelDraw, QGraphicsScene
Using Qt, you can save the contents of the graphic scene QGraphicsScene to SVG vector graphics files that are opened without problems after such editors as CorelDraw. I propose to write a small application that will save the contents of …
Qt → Qt/C++ - Lesson 033. Working with QGraphicsObject instead of QGraphicsItem
QGraphicsScene, GameDev, QGraphicsItem, Qt, QGraphicsObject
My attention was drawn to the fact that for working with signals and slots instead of a class inherited from QGraphicsItem and from QObject , you can use a class inherited from QGraphicsObject . Indeed, if a little rummage in …
Qt → Qt/C++ - Lesson 027. Polymorphism in Qt by the example of geometric shapes in QGraphicsScene
QGraphicsScene, Qt уроки, figure, QGraphicsItem, ооп, Полиморфизм, пример, Qt, square, triangle
Polymorphism is one of the paradigms of OOP (Object Oriented Programming). Polymorphism implements the ability to provide base-class properties and methods, the implementation of which is not known for future classes that inherit from this class. That is the base …
Qt → Qt/C++ - Lesson 023. Moving QGraphicsItem on QGraphicsScene with mouse help
QGraphicsScene, Qt урок, QGraphicsItem, перетаскивание, Qt
Let's say that you make an application that will be displayed the elements of the network infrastructure on the graphic scene . The question is how to make the movement of these elements with the mouse, you have to implement …
Qt → GameDev on Qt - Tutorial 1. Track mouse movement in QGraphicsScene
QGraphicsScene, отслеживание, cursor, GameDev, Qt, mouse
Everyone remembers the game Crimsonland ? There had to cut stacks of monsters. To move on the playing field, we used the keys W, A, S, D, and shooting direction the mouse cursor, which was produced track. So, in itself …
Qt → Qt/C++ - Lesson 021. The drawing mouse in Qt
QGraphicsScene, рисование QGraphicsScene, Qt урок, рисование, Рисование Qt, рисование мышью, Qt5, Qt
In this lesson, let us learn drawing with the mouse in Qt, based on the most primitive analogue Paint using QGraphicsScene . No adjustments or brush size, or palette, or special effects, and a red line, which we will draw …
Qt → How to make game using Qt - Lesson 4. Enemy – meaning in the survival
QGraphicsScene, написать игру, GameDev, QGraphicsItem, Qt, QPainter
Continuing the theme of how to write a play on Qt. Once in past articles a fly was created, that eating apples, it is time to create her enemy. And the enemy flies, as is well known, the spider. Creation …
Qt → How to make game using Qt - Lesson 3. Interaction with other objects
QGraphicsScene, написать игру, GameDev, QGraphicsItem, Qt, QPainter
Once the game has animated fly, which moves under the influence of the keyboard shortcuts, it is time to add meaning to the game. Add goal Fly, for example, it will eat the apples that will be counted. That is, …
- 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
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
- Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.