-
Basler camera hard trigger
you need to code to achieve hard trigger, but the sample in pylon only finds software trigger examples. According to the above tips, you have implemented hardware trigger, but the actual test cannot be triggered. I know it is a code problem, but ther...
-
Pyinstaller packaging py error ImportError: No module named FileDialog.
I use pyinstaller to package the environment is python2.7.11,pyinstaller 3.3.1. there are only these two py files
manage_utils.py
mainform.py.,pyinstaller -F mainform.py,
,
how did this happen? And the path of program execution seems to have chang...
-
How the Python file generated by PyUIC runs out of the interface, and how the custom slot function implements the specific code.
Qtdesigner designs the interface, saves it as a UI file, converts it into a Python file through PyUIC, and imports the classes of this file into another python file, main.py. (in order to separate the UI, it is convenient to edit UI), .
from mainUI impo...
-
QT5.2 adds custom EXIF information to the JPEG file
I am using QT5.2+MSVC2010,. Now there is a need for me to add some custom EXIF information to a JPEG file, such as "name ", "gender ", "age " and so on. Is there a corresponding API or third-party library in QT that can meet my need? Thank you ...
-
PyQt5 uses QThread to separate UI and logic, and as a result, UI still gets stuck.
class Ux(QMainWindow, window.Ui_MainWindow):
@pyqtSlot()
def do_stop_search(self):
pass
@pyqtSlot(dict)
def do_append_result(self, item):
pass
def on_btn_search_clicked(self):
self.search = SearchThread(s...
-
Invalid date format conversion in Qt
QDateTime valid = QDateTime::fromString("2018-Apr-5", "yyyy-MMM-d");
use qDebug () output valid to directly say that it is invalid, what is this all about? It is not valid to use an example in the official document:
QString s...
-
There is an error in the operation of the qt4 program.
A simple interface program that accepts username and password, slot function is temporarily empty, compilation can pass, runtime error.
passwddialog.h
-sharpifndef PASSWDDIALOG_H
-sharpdefine PASSWDDIALOG_H
-sharpinclude <QDialog>
class QLabe...
-
As soon as nodejs+mqtt, starts apollo, it will report the wrong Connection refused: Server unavailable.
< H2 > background < H2 >
nodejs as server rely on mqtt package [1]: https: www.npmjs.com package. start mqtt service
the main implementation code is as follows:
var mqtt = require( mqtt );
var mqttc = {}
var options = {
host: "127.0....
-
Python wrote the client side in paho, but what might be the reason why you can't connect to apollo,?
python Code
import os
import os.path
import time
import paho.mqtt.client as mqtt
import csv
import json
def ParsFile(filename):
file_object = open(filename)
try:
if os.path.splitext(filename)[1]==".txt":
for line ...
-
[help] the mqtt client, connection apollo written by python always reports an error Error 10054
first, apollo starts normally
python code, very simple:
import time
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + str(rc))
if __name__ == "__main__":
...
-
Is it possible to change variables within a running function from the outside?
in order to make it easier to tell, I compressed the question.
has an interface where the following start function executes when the start button is clicked, and you can see that as long as paused is false, it will continue to execute. Because I add...
-
Qt choosing to create a new file in the file will not display information.
void MainWindow::fileCreateActionSlot()
{
QLineEdit *line_edit=new QLineEdit();
line_edit->setGeometry(50,50,80,80);
line_edit->setText("");
QLabel my_label;
my_label.setText("");
}
...
-
How to package QT to get Android APK
when I was packing, I configured a lot of things. prompt android-8.1.0 invalid; but I am too low with other versions ...
-
How to make the tree control of Qt display faster?
my project needs to display a large amount of data on the qt tree control, a total of four columns, the first column is the button and text, the second column is text, the third column is combobox, and the fourth column is icon. If all inserted, it will...
-
What the hell is the web browser encapsulated in QT? why do I write a lot of CSS attributes that are not supported?
as a pc client, the QT5, client comes with a web browser and asks them that it comes with QT, but when I do front-end development on this browser, some of the CSS attributes are incompatible, such as this: cursor: pointer;, it seems to be unknown, and ho...
-
On the problem of extracting cookie from python simulated landing
want to use python to open a web page, log in to the system, extract cookie and other operations, because that system is very painful, so the implementation of bag-grabbing simulation has been given up.
now we have realized the function of extracting ...
-
Will there be any problem with using the built-in smtp to send e-mail?
I would like to ask the following, because it is a stand-alone version of PC software and there is no intermediate server, I want to build the function of sending email with smtp in the software to facilitate users to send feedback. There are the follow...
-
How does QMessageBox output variables in PyQt5?
look up some methods about the use of QMessageBox.information on the Internet, but basically all of them are about C CPP, there is little information about PyQt5, and format and tr (). Arg () are not easy to use. how to output variables through QMessag...
-
Monitor the keyboard input of the web page and fill it into the input box automatically if it is text.
question: there is a requirement that if the input box is not currently focused, but the keyboard is pressed, the input will be automatically populated into the input box. my implementation is to listen to document.keydown, to determine keycode, and set...
-
How does pyqt5 QWebEngine play domestic videos in full screen?
questions are as follows:
how to enforce the use of H5 player?
what if the full screen button is invalid?
Test Code:
import sys
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWebEngineWidgets import *
def _fullScreenRequested( request...