28 questions
1
vote
1
answer
76
views
How can I remove space between label?
I want to remove the space between labels.
Range number of labels is 1 to 5 and is used in loop ( text got from db )
I Used varios option but everythoing failed
(.setAlignment/.setMargin~~~~)
And I ...
1
vote
0
answers
72
views
Not reading data from the serial port continuously
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
int main()
{
const char *device = "/...
1
vote
0
answers
248
views
I'm trying to run a basic hello world program using PyQt5 in Ubuntu 22.04 and Python3.10
I got the warning and no GUI is opened .
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform ...
0
votes
2
answers
1k
views
QTile set position for window
My problem is that I want to have a specific wm_class spawn at a specific X and Y position on my screen every time it opens (Floating window).
I read the documentation, but couldn't figure out a way.
...
1
vote
0
answers
141
views
Using PythonQt wrap function that accepts custom class binded with pybind11
I have a C++ class MyClass that is binded to python using pybind11. Thus MyClass resides in python module named mymodule. That means from python I can do:
import mymodule
my_class = mymodule.MyClass()...
1
vote
1
answer
337
views
How to build PythonQt in ubutnu
I want to embed the python script in my c++ Qt application, By searching on the net I found that PythonQt is exactly what I am looking for but when I went to it's github repo there is build ...
1
vote
0
answers
75
views
Using PythonQT: Fatal Python error: Py_Initialize: unable to load the file system codec
I have inherited a project. I can get it to compile but I am running into this runtime error. I have uninstalled all other versions of python on my machine except for the version that came with the ...
0
votes
1
answer
271
views
How to build PythonQT on Mac
I'm trying to build QT app with python embedded by PythonQT but stuck at building PythonQT.
Here is my environment and what I did:
mac os 10.15
python 3.8.5 installed by homebrew
python-dev-tools ...
0
votes
0
answers
110
views
In C++ PythonQT, How to the variable name used in each thread is the same, but how do you use the value differently?
I am using multithreading PythonQT in C++.
When using values of the same name in different threads, I want to use different values.
Help me plz...
[Code : run multithreading]
int nRet = ...
1
vote
1
answer
176
views
Making realtime output on PythonQT and send key input to the command
I need some help or/and suggestions here, I'm making a Python program with GUI using pyQT, but I need to output realtime subprocess command into a textbrowser, so that way the user could see if there'...
1
vote
1
answer
725
views
PythonQt: How the heck do I actually install it?
I am trying to install PythonQt for a Qt 5.12 application that I am building on windows. Unfortunately, the documentation is super sparse, and I am not at all familiar with using external libraries ...
1
vote
0
answers
81
views
PythonQT, QMenu update QActions
I've got the following code which was working well before I updated utils._DATA twice. Utils._DATA is dictionary.
class SystemTrayIcon(QtWidgets.QSystemTrayIcon):
def __init__(self, icon, parent=...
0
votes
1
answer
214
views
How to build a program using PythonQt?
On Ubuntu Bionic, I've built PythonQt and the examples work as they should.
How do I compile my own application using the build PythonQt I have?
newbie here, so step by step instructions would be ...
0
votes
0
answers
331
views
PyQt widget in Qt-C++ application
I am trying to understand if it is possible to include a PyQt5 widget inside my Qt-C++ application.
There is a lot of information about wrapping C++ class into python and using it from the python ...
0
votes
0
answers
480
views
PythonQt QRunnable GUI crashes whenever thread is running
I was looking to implement QRunnable and QThreadPool into my Qt application, where I want to have the GUI continuously listen in the background for microphone input. I have the thread working and it ...
-1
votes
1
answer
216
views
unable to select rows in table widget In PyQGIS
In PyQGIS design tablewidget, I have set table widget to be read-only and when I select particular,it is didn't read that row?
self.dlg.ui.tableWidget.item(row, 1).setFlags(Qt.NoItemFlags)
unable to ...
0
votes
1
answer
147
views
Use BoolResult in pythonQt
in C++ BoolResult is casted to a pointer:
bool ok;
int i = QInputDialog::getInt(this, tr("QInputDialog::getInteger()"),
tr("Percentage:"), 25, 0, 100, 1, &ok);
if (ok)...
0
votes
1
answer
606
views
How to use QTextStream with PythonQT?
I am writing a plugin for a Qt desktop app using PythonQT.
I wonder how to use << operator in python.
QTextStream stream(&file);
stream << doc.toString();
Any hints?
How may I ask ...
1
vote
1
answer
181
views
Passing numpy object to pythonqt wrapper
I have a c++ class myClass and I'm trying to have a creator based on a numpy array.
Here is the wrapper defining the new_ python creator taking PyObject as argument:
class myClassPyWrapper : public ...
0
votes
0
answers
131
views
Matlab engine freezes at MatlabEngine::waitForMatlab when trying to connect
We are trying to use the matlab engine in our QT C++ application, through a PythonQT console. Normal python commands work from within the pythonQT console in our application, however when we attempt ...
0
votes
0
answers
87
views
Qt onWidgetCreated(object/className) signal
I want to register a event that gets fired every time a new widget or dialog gets created. I don't know if such a signal exists and where to connect it? In the QApplication?
2
votes
3
answers
6k
views
Find item in QApplication by only the objectname
i want to find any object by a objectname string name inside of the QApplication
Something like
QApplication.instance().findByClassName("codeEditor")
which should return a list of widgets with this ...
7
votes
1
answer
470
views
Using okular in a Python app : hiding the side pannel
I am developing a program (TeXamator) in Python to deal with exercises databases in LaTeX. Following this answer I have been able to successfully embed okular into my Qt app.
The problem is that I ...
0
votes
0
answers
108
views
clickable event on QLabel in python using pythonqt
I have read this and wanted to comment on one of the answers with another question. So i want to make a label clickable in Teamspeak 3 using my script for pyTson
python
07.11.2016 14:16:48 pyTSon....
0
votes
1
answer
551
views
How to properly close a QWidget-window in an API with PythonQt
i'm working with Python 2.7 in the API of a visualization-program. In its 2016-version i created a GUI with PySide and it was working guite good. Now in their new 2017-version they changed from PySide ...
1
vote
1
answer
540
views
PythonQt doesn't print anything
I'm following the examples at http://pythonqt.sourceforge.net/Examples.html, but PythonQt doesn't print anything on the console. I execute a script that just prints hello, but nothing gets printed.
...
1
vote
1
answer
4k
views
How to use appimage to deploy qt5 application
I'm using appimage http://appimage.org to pack my application in a standalone excutable.
I'm doint this on debian testing lenny.
My application uses a lot of opensource libraries (qt, python ...
0
votes
1
answer
325
views
PythonQt and Anaconda Python
I am trying to build PythonQt against anaconda python (2.7.x). Running the included PyGuiExample I am unable to get any Python other than the system install.
Running OS X 10.10, Qt 5.5, latest ...