Graduation project – road deviation detection and early warning system based on QT4+Opencv

Road deviation detection and early warning system based on QT4 + Opencv Development environment: Ubuntu14.04 + QT4.8.5 + Opencv2.4.8 Already implemented functions: Road deviation detection road deviation warning Serial port reads external sensor data Project directory: Part of the source code display: #include “dlpy_main.h” #include “ui_dlpy_main.h” #include “utils.h” dlpy_main::dlpy_main(int state,string filename,QWidget *parent): QMainWindow(parent), ui(new Ui::dlpy_main) […]

Litchi Pie nano (f1c100s) manually transplanted QT4.8.7

Litchi Pie nano (f1c100s) manually transplants QT4.8.7 Hardware environment: 1. Lychee pie nano (f1c100s) Article directory 1. Concept clarification (must read) 2. Use buildroot to build the root file system 1. Target options 2.ToolChain 3. System configuration 4. Compile (make) 3. Start transplanting Qt4.8.7 1. Download the source code and unzip it 2. Modify qmake.conf […]

Graduation project – road deviation detection and early warning system developed based on QT4+Opencv

Road deviation detection and early warning system based on QT4 + Opencv Development environment: Ubuntu14.04 + QT4.8.5 + Opencv2.4.8 Already implemented functions: Road deviation detection road deviation warning Serial port reads external sensor data Part of the source code display: #include “dlpy_main.h” #include “ui_dlpy_main.h” #include “utils.h” dlpy_main::dlpy_main(int state,string filename,QWidget *parent): QMainWindow(parent), ui(new Ui::dlpy_main) {<!– –> […]

Custom widgets in PyQt4

Contents Previous Next PyQt4 has a rich set of widgets. However, no single toolkit provides all the widgets a programmer might need in their application. Toolkits usually only provide the most common widgets, such as buttons, text widgets, or sliders. If a more specialized widget is required, we have to create it ourselves. Custom widgets […]

Menus and toolbars in PyQt4

Contents Previous Next In this part of the PyQt4 tutorial we will create menus and toolbars. A menu is a set of commands located in the menu bar. The toolbar has buttons that contain some of the commonly used commands in the application. Main window The class QtGui.QMainWindow provides a main application window. This enables […]

Events and Signals in PyQt4

Contents Previous Next In this part of the PyQt4 programming tutorial, we will explore events and signals that occur in the application. Activity content All GUI applications are event driven. Events are primarily generated by users of the application. But they can also be generated by other means: for example Internet connections, window managers or […]

Dialogs in PyQt4

Contents Previous Next Dialog windows or dialogs are an integral part of most modern GUI applications. A conversation is defined as a conversation between two or more people. In computer applications, a dialog is a window that “talks” to the application. Dialog boxes are used to enter data, modify data, change application settings, etc. QtGui. […]

PyQt4 Widgets II

Contents Previous Next Here we will continue to introduce PyQt4 widgets. We will introduce QtGui.QPixmap, QtGui.QLineEdit, QtGui.QSplitter and QtGui.QComboBox. QtGui.QPixmap QPixmap is one of the widgets for working with images. It is optimized for displaying images on screen. In our code example, we will use QtGui.QPixmap to display an image on the window. #!/usr/bin/python “”” […]

Drag and drop in PyQt4

Contents Previous Next In this part of the PyQt4 tutorial, we will discuss drag and drop operations. In computer graphical user interfaces, drag and drop is the act of (or support for) clicking on a virtual object and dragging it to a different location or onto another virtual object. In general, it can be used […]

Drawing in PyQt4

Contents Previous Next When we want to change or enhance an existing widget, or if we create a custom widget from scratch, drawing is required in the drawing application. For drawing, we use the drawing API provided by the PyQt4 toolkit. Painting is done in the paintEvent method. The drawing code is located between the […]