Qt Questions
Ad
How to simulate Azure IoT Hub disconnecting
I'm using the paho.mqtt.c library to connect to an azure iot hub. i want to test how my software handles disconnections from the iot hub.
Qt "passthrough" or "container" widget
In qt / pyside2, is there such a thing as a qt widget that simply passes through to a wrapped widget, without adding any extra layers of layout
How can I hide/delete the "?" help button on the "title bar" of a Qt Dialog?
I am using qt dialogs in one of my application. i need to hide/delete the help button. but i am not able to locate where exactly i get the handle
How to get selected listitem index in Qt
I am having a qlistview which contains some items. now i want to get the index of selected item, i.e. if i select 5th element i
How can i fix Mixed Content issue in mqtt?
I need to connect to broker over websocket. <script
How to delete/clear AppData/Roaming/MyFolder files during uninstall using qt installer framework?
I create a application using qt installer framework. now uninstalling my app does not remove appdata/roaming/my app folder. so i tried my custom
QFile myFile.copy(newFile) failed, but myFile.error returns 0 (this means NoError)
I am using qt 4.6.3 with suse 11 linux and i try to copy a file with qfile: qfile myfile ("/my/path/myfile.txt"); if
PyQt and Netgraph Interactive Graph
I have an application with pyqt and i would like to add the netgraph graphs interactiviness to my application. however, i am not being able
Custom style with Qt
Has anybody experience in building a custom style in qt? what i have in my mind is a complete new style that affects all kind of widgets. i have
QT push button to create object
I am trying to create a little game using a pile structure, and im using qt widget application, my problem is: i have a class pile that needs to
Ad
Qchart Remove the line point from bottom
I am new in qt, i want to build a chart. in the chart, i want to show only line. you can see the picture with is attached. how can i remove this
Dynamically added Widgets in PyQt5
I'm new to pyqt and i'm trying to create a system which dynamically adds widgets when the user presses the search button. the items added were
Qt How can I use DocumentsLocation
I am trying to develop an application with qt. my problem is: i need to write and delete something in a text file. i am writing the text file as
Fetch data from qcalendar
How to fetch the data from qcalendar. for example, when is select 21/10/2019, "monday" will be fetched when i click the "ok" button the
Clicking a button to create a new button using PyQt5 python
I'm trying to create a window(ui) that have a button click action implemented using python and
How to define QML gradient object in javascript
This is my qtquick qml code function show_me(element) { console.log(element.gradient) } rectangle { gradient: gradient {
PyQt5 How to update GUI when use evaluateJavaScript if python is still running
I would like to modify my gui dynamically with the evaluatejavascript command i noticed that the gui is updated only when python has
Keep watch on a folder for recently added file and display the data inside that file on QTableView
I have written a logic in pyqt5 which reads the data inside a recent csv file which has been added in a specific folder when you press a button. i
Faced with the problem of updating progressbar in Qt in python
Write player, and emerged question, when i launching song, i want to progressbar was updated in the time when goes music, made cycle, threw his in
QSlider with "arbitrary" values (from list/array)?
I ended up with a subclass of qslider like this: # via
How to show a highlighted label when The mouse is on widget
I need to know how to make a highlighted label(or small box )appears when the mouse is on widget like when you are using browser and put the mouse
Ad
Python MQTT publisher doesn't publish
Trying to publish some data from a raspberry pi, but nothing gets through. however, publishing via mqtt.fx works fine. this is my python
python: How to constantly update buttons inside QGridLayout
I am making a project on pyqt5 and i need to change amount of buttons inside qgirdlayout i am using pyqt5 to make gui for my application.
Correctly display thread ID with QThread
I'm trying to correctly display the id of a thread using qthread but i get some confusing results. i've already read this:
How to show a pixmap in pyqt5 in __init__
I have a simple python application using pyqt5 that shall perform an update. currently i'm stuck directly within the __init__, when i
Using PyQt4 & sip for shared maya script - how to set up modules?
I want to use pyqt4 and sip in a shared maya script. i figured i can't use pip-install because i would only get these modules locally on my
I want to get working QFileSystemModel in Tree view?
I am making a program in which i want a filetree (i already have this but not with qfilesystemmoodel and that makes it harder to do things
Problem loading VTK window into PyQT Window
I'm tearing my hair out with a problem with vtk and pyqt4. i have an interface that has two tabs in it, one will house the vtk window and the
How to catch "access error" when publish inaccessible topic in mqtt.js?
I am creating a project using node.js with mqtt.js and mosquitto broker. in mosquitto config file, i have setup a pwfile, aclfile to control which
How to check whether a context menu or dropdown list is opened in the current window?
I want to check if there is any context menu or dropdown list opened in the current window. there is a qtimer running that should do
PyQt5 StatusBar Separators
How do i add vertical separators to my statusbar? (red arrows) in this screenshot.
PySide2 - Binding model to view
Hopefully someone can help me cause i can't find anything that works online. i'm building a simple gui for a ai project and using pyside2
Ad
Dynamic button generation in class with click signal
I want to create a gui where many buttons and qwidgets will be created later. because this (i want to move it to single classes and this is where
How to Use the Android 'IP Webcam' App with Python
Working on simple gui project. i've got some code from online,and found out how to connect the ip-webcam app, but the question is how do i use
Display the text of a checkable combobox to a QTableWidget
My code has a combobox with checkboxes and everytime i check a checkbox i want to display the text in a qtablewidget row and if a checkbox is
Use methods as arguments for a partial command
Can i use a method with arguments as an argument in a partial statement? i am using partial and can pass strings, but when i try to pass a
Not sure why textbox isn't showing
I'm making a simple browser with a search box in pyqt5. this is what i've written: import
in PyQt moving between screen when pressing a button
I'm building restaurant app for practice with pyqt5 i have 2 problems: i have a main screen that will take the user to other screens
Remove Points / Lines Canvas Python Matplotlib
I use the following code to draw lines in matplotlib with mouse event. every click they save the coordinates and draw lines. from
Different memory usage between compiled typescript and vanilla javascript
When i compile my typescript code, which is exactly the same as the vanilla javascript code, i get an increase in memory usage while the code is
how enable widget moved when window size changed with paint event?
I am try to create a widget to animate a line, the when the windows size is changed, the animation always play the size. i know the
Assign function to word in QLabel
I am searching for a solution for the following problem: i want to assign a function to a certain word inside a qlabel of
Splitting QString on spaces and keeping the space in QList - best or 'canonical' way
As in the title, i would like to ask what is the best way to split a qstring on spaces and - where relevant - keep the spaces as parts of the
Ad
Insert blob image into QPixMap from sqlite db to QTextBrowser in PyQt5
I can't insert qpixmap image to qtextbrowser with html tags. (i need to insert with html not other methods) i tried the code below.
reading text from QLineEdit as a submenu of a Qmenu option
Reading the text a qlineedit which is part of a qmenu as shown in the code initially i though i could use a trigger function to determine
How to access widgets in centralWidget from stackedLayout?
I have a qmainwindow in file controller.py which creates a qmenubar on the centralwidget and multiple files named as
How do i make a button to execute untill i release it?
I'm facing an issue to make a button execute continuously, when i press the button till i release it in pyqt4. import sys from
Highlighting portions of text in QPlainTextEdit
I have a list in qplaintextedit and want to highlight a specific line, line number 5 say. i looked at various tutorials and examples, but
Python when i click button twice qgridlayoutwidget gets weird
**-solved-** hello i recently made a program which gets imdb api (non-official one) and generate bbcode you can see my code
DNS Round Robin failover doesn't work with mqtt.js
I have a nodejs application that uses mqtt.js to connect to an emqx cluster. the mqtt cluster contains of 2 nodes which i try to provide
QJSEngine, global and script, what is causing the syntax error
I am using the qjsengine, i added a global to the object:
PyQt: How to create custom combined titlebar and menubar
I'd like to set the menu and title in one bar, but have no idea that how to layout the menu bar and title bar (or my own title bar).
MQTT How to send back to client in IoT?
I am new beginner and try to create iot network. as i search on the internet and see some information, there is a device (mqtt client), and
MQTT.js unable to make localhost broker connection
I work on a react native mobile app. i use mqtt.js to establish
Ad
How to prevent window and widgets in a pyqt5 application from changing size when the visibility of one widget is altered
I want to create a dialog, in which the user should first select one item in a drop down, and for some choices specify an additional parameter.
Nodejs - Passing json object to a event.handler function
Apologies in advance as this is my first time working with nodejs. we are using a product called qtest pulse. in simple terms we have a
why qt application always new widgets instead of on stack?
There. i've seen this example from qt:
Image doesn't show in my secondary window
I wanted to create a secondary window to show the fullsized image, so that's what i've made but i can't see the image. i don't know if it's why i
How to show another Widget after signal from existing window app? (both guis converted from ui using pyuic5)
How to show/load another widget after button click in existing window?. having converted two guis from qtdesigner into
How to fix: "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created." warning
Anytime i try to plot anything with matplotlib i get this warning. attribute qt::aa_enablehighdpiscaling must be set
QAction checkable at time in QMenu with nested menu
I want to create a nested menu with three levels file->circuit->then with an option of full of half with the later options checkable and
How to import QtWebEngineWidgets after QApplication has been created
I am trying to get around this error: qtwebenginewidgets must be imported before a qcoreapplication instance is
PyQt- CheckedListBox?
I am developing a gui with pyqt and want to know if there is something like the "checkedlistbox" (from vb.net) for pyqt. if not, are there any
Can't Kill PyQT Window after closing it. Which requires me to restart the kernal
I guess that i am not closing my pyqt5 window correctly. i am using spyder (3.3.5) which i have installed with anaconda, to program a pyqt5
What should I use, QTableWidget or QTableView?
What should i use, qtablewidget oder qtableview? i'm currently working on a program to display some log files in a table. i was using
Ad
How do handle a graceful disconnect with Paho in React Native?
I need to handle graceful disconnects with the
Python Convert SQL DataType Image to Python PyQt4 QPixmap and Show it on GUI
I'm trying to display image from sql database in python pyqt4 gui, actually the data is being passed through socket from .net to
After QPushButton clicked execute some code and when finished automatically go to next QWizardPage
I have a wizard with three pages. first page is basicsettings(), second page is installpackages() and the last page
Add Icon to Tab (QTabWidget)?
I'm working with a qtabwidget with three tabs. one of the tab is about information/help. so i want to use a picture of a question mark (.png)
Check if QLabel is enabled, pyqt label state (isEnabled)
I want to check qlabels state and make an action over that control. i have a label and i want to use isenabled() function on this
export widget in PDF file
I would like to export a label in a pdf file. i got the error message: 'qlabel' object has no attribute 'document'
Is it possible to connect a signal from any instance of class1 to a slot in class 2?
For exmaple we have class item which has signal void reporterror(qstring). furthermore we have class
Syntax highlighting editor with PyQt5
I'm currently working on an pyqt5 based application i could use an (embedded) editor for which provides some syntax highlighting for yaml (and
Creating custom widgets and promoting them to default ones using Qt Designer (generated GUI)
I'm trying to build a stock of custom qt widgets used in my job. i want to stick to pyside2 and qt designer for layout development. i have also
How to make buttons from scratch in PyQt5?
During making my program i needed to create a widget with qtextedit and qpushbutton on it. i did this but the button looked like 3d object. before
How to make editable value in QTreeWidget
I have a project. i work on json file. i got a sort in python. this is treeview and i want to make changes to the treeview. how do i editable it
Ad
Emiting QTableWidgetItem specific signal on being clicked
I want to implement the functionality that multiple qtablewidgetitems inside of a qtablewidget can be selected and unselected so that the values
Pyinstaller - Hide and Run Executable file through .bat file
I am trying to add one executable (.exe) file, a .conf file and a .bat file into the binary package created by pyinstaller and then through that
the qlabel can not trigger the mouse release event
I have a parent qlabel, and create a child qlabel to show some text. when i click on the child qlabel, the mousepressevent on parent qlabel is ok
A string of consecutive check boxes in pyqt
I would like to create a number of consecutive checkboxes [x] with labels in pyqt5. most of the similar questions i have found an online deal
How to put some validation on Qwizard finish button slot and get confirmation before qwizard finishing?
I try to put some validations on user inputs and display a summery of entered information and get confirm from user if all thing is right. i think
can't print readAllStandardOutput correctly decoded
I have this code to print into a text field all the output from a process: data = self.m_process.readallstandardoutput() s =
How to add a text on image(Python GUI PyQt5)
How to add a text on image? it may place top right top left bottom right bottom left or center it does no matter? class
Loop for key input who modifies OpenGL wigdet
I am trying to create a loop who is being executed all time and checks for key input. this loop would modify the opengl properties, but i do not
QTimeEdit How to decrement to previous hour when minute is decremented?
My qtimeedit displays hh:mm. the miniutesection has 15 as the step. my qtimeedit increments well. but when i want to decrement the minute, i can
How to fetch comboBox.currentText() and SpinBox.text() from within a treeWidgetItem
Context: i have a qtreewidgetitem that i'd like to save as a json file. the qtreewidgetitem is composed of three columns
How to save Qlistwidget items in database or in txt file
Hello recently i made app which will i show you below. in pyqt5 i want to save qlistwidget items in txt or in database file but i don't know how
Ad
How to insert and clear placeholder in QTextEdit
I have a qtextedit with settext() already but i want a the placeholder to clear when user selects the edit text. illustration shown here
changing pixel color with setPixel
I have a b/w picture i need to edit pixel by pixel. if a pixel too dark it's color should be changed to black. here's my code:
Routing MQTT protocol to PM2
We have some sort of devices connected to a mqtt broker (mosquitto), publishing some events. we want to capture all these events
node mqtt server not propagating publishings
In this sample project i am trying to subscribe to a channel and
Change editability for individual cells of QTableWidget
I use a qtablewidget as an i/o feature for the user but i want to make it more user friendly and intuitive by disabling the editability of cells
How can I connect my Reactjs Web App to a secured MQTT broker?
I have a reactjs web application that needs to connect to a secured mqtt broker. the web application is deployed in aws elastic beanstalk
QWebEngineView update with pdf path
I have a qtwebenginewidgets showing some pdf files. i want to change pdf and force qtwebengineview display automatically
Running pytest-qt on CircleCI
I am attempting to run tests which require pytest-qt (for testing pyside2 dialogs) on circleci. i am getting the following error:
how to add QLabel object to qheaderview?
Need to add subscript to horizontal header of qtablewidget with qlabel where html will be the text of the qlabel.
QPainter in pyqt5 is not painting anything when calling repaint() in a loop. How do I fix this?
I am totally new to pyqt. i want to do animation using pyqt5 .this is a simple test i am doing , so i am just trying to move a rectangle from top
How to check if a checkbox is checked in a qtablewidget?
I'm setting a filtering tool in python 3.7 and i'm using pyqt5. i've created a qtablewidget to store the filters and their complementaries choosed
Ad
NoSuchMethodError with JNI on Qt during reading Shared Preferences in Android
I want to use the shared preferences in android to save persistently the user-id, also if the user deinstalls the app. for this i'm using
Flutter mqtt_client "MqttBrowserWsConnection::connect - websocket has erred"
I'm receiving an error when connecting to my mosquitto server in my flutter web project. i'm using the import for
Ad
Blog Categories
Ad