325 questions
2
votes
0
answers
29
views
How do I remove nested buttons from nested QHboxLayout in PyQt6? [duplicate]
I have a QVBoxLayout that contains three QLabels and a QHBoxLayout nested inside it. The nested QHboxLayout itself also has two nested buttons. When the buttons are pressed, I want to empty the entire ...
1
vote
3
answers
163
views
How to limit QComboBox popup height without showing scrollbars or arrow indicators?
I am customizing a QComboBox in Qt (C++). I want to limit the maximum height of the popup list, but still allow scrolling when there are many items.
However, I don’t want the scrollbars to be visible ...
0
votes
1
answer
32
views
QtVirtualKeyboard does not scale
I am using Qt 6.8.3, MinGW (64 bit) on Windows 11.
I have created a Qt Widget HelloWorld App for the purpose of Scaling QVirtualKeyboard.
So when I change focus on any spinbox in UI file, keyboard ...
0
votes
0
answers
33
views
Cannot restart a QTimer timer after stopping it from a python script
I'm running a QWidget in python using an extended version of the following code:
class MyWidget(QWidget):
def __init__(self):
super().__init__()
self.timer = QTimer(self)
...
0
votes
1
answer
117
views
Custom circular Countdown progressbar in Qt widget C++
I want a circular time counter to display the remaining time of a process that looks like the figure below
I use Qty 6.6.3 and Qty widgets
If anyone has an idea to do this, I would appreciate it if ...
0
votes
0
answers
130
views
Qt Expand Title Bar with double click for QDialog with ContextHelpButton (Windows and Linux)
I am trying to implement double click showmaximized / showNormal for my QDialog widget title bar.
The dialog has to contain ContextHelpButton, so it's impossible to combine it with Qt::Window,Qt::...
0
votes
1
answer
111
views
Can I change the style of a QObject by changing the ObjectName via stylesheets? [duplicate]
I recently learned about the nice possibility to style objects in Qt with a stylesheet. Now I want to change the background color of a QFrame after a specific event happened. So I set up two entries:
...
0
votes
1
answer
106
views
How to get rid of unwanted rounded squares (checkboxes) in QTableView items? [duplicate]
I have a QTableView with some data (numbers), but each cell contains an unwanted rounded square (maybe a non-functional checkbox). They look bad, occupy space, and can obscure my data.
Why do they ...
0
votes
1
answer
96
views
Maya UI for browsing assets failing to navigate like OS X finder in Column view?
I am designing an Asset browser for navigating a pre-defined folder structure and with the help of @musicamante its now looking alot better!
its meant to function in a similar way to OS X's finder in ...
0
votes
1
answer
64
views
Maya UI for browsing assets failing to propagate multiple lists?
I'm creating a script in Maya with python that is designed to navigate local directory folders.
The way I've been asked to make it navigate is with a collection of lists each representing a different ...
0
votes
0
answers
57
views
Problem with resetting scrollbars when left mouse press event is sent to QGraphicsView
So, I am currently trying to implement dragging mode on mouse with ScrollHandDrag everytime user presses middle button on QGraphicsView. The problem is - to actually drag with scroll hand drag mode ...
0
votes
1
answer
64
views
Python/pyside2 how to iterate 5 times, then add a row and then iterate again?
I'm populating a QtWidgets.QGridLayout from a large list and I'm trying to create a loop that will add one row with 5 columns, over and over again, until I run out of things in a list.
Here is a ...
0
votes
0
answers
195
views
using a QItemDelegate subclass to get old and new data in a signal
I have a QTableView backed by a QStandardItemModel. The table also supports editing.
One of the columns in this table contains a user editable QString. If the data changes, I need to know both the ...
-1
votes
1
answer
95
views
Been writing a notepad clone with QT6 c++, but every time I save the file, it creates the file empty without the text from TextEdit;
So I am writing the code for a notepad clone which I hope would evolve into a final draft clone in further updates, and I am using it as a tool to learn C++ and QT as I am still Quite a beginner with ...
2
votes
0
answers
374
views
Trouble setting up Qt 6.5.0 LTS for static compilation
I'm currently trying to set up a Docker container containing Qt 6.5.0 LTS. My goal is to statically compile Qt programs using qmake, so that I don't have to install any dependencies to run the ...
0
votes
1
answer
957
views
QT trying to add a qwindow as a QWidget using QWidget::createWindowContainer, created widget does not behave as wanted
So In my Qt app I have a class that inherit the QWindow class , and I would like it to be added to a QMainWindow so I tried using QWidget::createWindowContainer. I got a result I didn't expected when ...
0
votes
1
answer
83
views
Plot data from one another class
I would like to plot the data in ctrl function in a figure that is created in Plot class.
class Data(QWidget):
def __init__(self):
QWidget.__init__(self)
self.layout = QHBoxLayout()
...
0
votes
1
answer
242
views
How to get multiple strings from input and store them in QStringList?
I'm using Qt framework to create an employee interface, which stores information of an employee (ID, name, surname, skills, etc..)
In the widget interface I've used a lineEdit for everything, since I ...
1
vote
0
answers
52
views
How to create a SlotOfQImage in QT Rust?
I'm trying to define a custom QT Slot/Signal for passing a QImage.
I'm using qt_widgets crate which has many predefined slot types like SlotOfQIcon. However it doesn't have one for QImage. I've looked ...
0
votes
1
answer
435
views
How to make text selectable on a QListView custom widget?
Context
TLTR: For a command-line console widget, I need to be able to select the texts on a QListView row.
In a similar way that your browser command-line (e.g. pressing F12 on Firefox and going to &...
1
vote
1
answer
142
views
How to integrate a cursor in a QtWidgets app
I am new to QtWidgets and trying to build an app in QtWidgets and Python (3.x). the end goal of the app is to show images and a
superposed cursor (to be exact, a "plus" sign of 2cm) that can ...
0
votes
0
answers
133
views
how to fully statically compile a Qt Widgets project?
Is it possible with visual studio to statically compile a QtWidgets project so that no dlls have to be shipped together with the executable file? How do I go about this?
0
votes
1
answer
146
views
QSS combine ID Selector with sub-controls
How can I apply a stylesheet to the groove and handle subcontrolls a QSlider with object name videoSlider?
1
vote
1
answer
1k
views
Remove border from QComboBox item
I'm trying to style a QtComboxBox and ListView but i'm not sure how to remove this annoying border when an item of the combobox is hovered. Here's what I have
QListView:
/*-----QListView-----*/
...
0
votes
0
answers
27
views
Add ghost empty lines between some lines of QPlainTextEdit [duplicate]
I am trying to build a small text editor and I would like to know whether it is possible to add empty lines that do not count towards the widget text between some lines of the document. It would look ...