Questions tagged [pythonqt]

Embed python into c++ Qt applications. Should be used for embedding Python code into c++ rather than writing c++ applications in Python.

27 questions
0
votes
1 answer

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 greatly appreciated
Amir
  • 83
  • 1
  • 8
0
votes
0 answers

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 side, however, my question is the opposite. I tried…
Eugene Kolesnikov
  • 643
  • 2
  • 6
  • 15
0
votes
0 answers

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 does run, however whenever I try to interact with…
Steve Li
  • 53
  • 2
  • 10
0
votes
1 answer

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) integerLabel->setText(tr("%1%").arg(i)); How…
Bluscream
  • 255
  • 1
  • 3
  • 18
0
votes
1 answer

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 Python to list all methods for a given class like QTextStream? Or is…
Olaf Japp
  • 480
  • 5
  • 19
0
votes
0 answers

Matlab engine freezes at MatlabEngi​ne::waitFo​rMatlab 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 to connect to the matlab engine, it hangs at the…
0
votes
0 answers

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?
Bluscream
  • 255
  • 1
  • 3
  • 18
0
votes
0 answers

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.PluginHost.onMenuItemEvent Error Error calling…
Bluscream
  • 255
  • 1
  • 3
  • 18
0
votes
1 answer

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 to PythonQt, so my imports and a few commands…
JFT
  • 1
  • 1
0
votes
1 answer

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. PythonQt::init(); PythonQtObjectPtr context =…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
1 answer

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 Anaconda. I have set the python.prf…
Jzl5325
  • 3,898
  • 8
  • 42
  • 62
-1
votes
1 answer

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 select rows in table widget,to read datas.
1
2