Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while having the power and speed of native applications. Qt is available with both commercial and open source licenses.
86,274
questions
0
votes
0
answers
18
views
Giving application window active focus when opening a file
In the documentation for QWidget::activateWindow() function, the following is said:
... On Windows, if you are calling this when the application is not
currently the active one then it will not make ...
0
votes
0
answers
23
views
How to update slider simultaneously in pyqt5
I am making a music player and want to update the slider after every one second for this I am using threading module but whenever I run the file the application stops responding below is the code for ...
0
votes
0
answers
12
views
How to draw multiples mappolylines
I am trying to add several distinct lines on QML map embeded in widgets application.
I plot markers on the MAP with a MapQuickItem from a JSON and in this JSON there are some lineString that I would ...
1
vote
0
answers
29
views
Is there a Qt event for when a QLayout has finished redoing geometry?
I have a custom class which extends QWidget and installs a vertical box layout on itself, as well as child widgets which are added to said layout. In this sense, it is a composite widget.
I have a ...
0
votes
0
answers
13
views
My Tableview not updating on button click from .qml file
On button click i am calling updateEntries() function which I am expecting it should add rows into the model and show the tableview on the screen.But i am not seeing any table with data.
Also i have ...
0
votes
1
answer
21
views
AppImage/Qt6 - QIcon::setFallbackSearchPaths not working
I am trying to deploy a Qt6 application, which bundles its own icons (this way on Windows/OSX I get consistent icons). As part of my build I deploy into $BIN/share/icons the content of the breeze ...
0
votes
1
answer
44
views
QGraphicsTextItem Setting Text Width For Text Centring
I have a QGraphicsTextItem in which later on I will have to use the toHtml function to retrieve the text and its styling (for writing it into a .ASS file). Currently I use setTextWidth() for the ...
-1
votes
1
answer
27
views
What does the number after the url function for the image property mean in a Qt5 QCSS specification?
Reading up on CSS stylesheet handling in Qt5, I found the following snippet at http://web.archive.org/web/20180629230221/http://www.qtcentre.org/threads/15119-QSlider-custom-handle-image-not-displayed ...
0
votes
0
answers
30
views
Issues with QGraphicsPixmapItem handling Mouse Events in QGraphicsScene
I created an object:
class Button : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
next I implemented a few functions:
Button::Button()
: m_pressed(false)
{
m_buttonPixmap = ...
0
votes
0
answers
26
views
What is the right method for creating QWidgets in a QMainWindow class [closed]
I am new to using Qt for Python, and following a really long tutorial to expose myself to it (as well as going ahead of the tutorial). While going ahead, i found that after adding a widget as a ...
0
votes
0
answers
12
views
Tab order not passed to a widget's children
I have a widget Edit Tool which has many elements. One of it's elements is custom widget, CustomSelector. CustomSelector has several child widgets which are dynamically generated.
My issue is with ...
1
vote
0
answers
39
views
QCombobox stops working after tap back navigation on android in Qt 6.4.2 C++
I have a problem with QComboBox on Android. When I open the drop down QListView menu of the QComboBox, and I hit the back on the navigation bar, the QComboBox correctly closed. But it's not working ...
0
votes
0
answers
24
views
Issue Qt QML TreeView (from Qt Quick Controls 1.4) with a textfield delegate cannot change value
I tried to edit a text directly in my TreeView (using a textfield delegate), but it doesn't work. It never enters the edit mode even with a bigger Z or a forced focus.
If anyone ever tried to modify ...
0
votes
1
answer
23
views
How to make qt scrollbar remain full sized after mouse leaves
I'm using a QScrollBar widget. When my mouse is over the widget, it becomes full sized. When I move my mouse away, it is nearly hidden. I want the widget to remain full sized all the time. Doing ...
1
vote
0
answers
18
views
How to get outputDevices list in Qt when a program is run by the root user
My program needs to run in sudo mode on Ubuntu 20.04, then, when I call QAudioDeviceInfo for getting output devises list, it returns an error:
PulseAudioService: pa_context_connect() faild.
In usual ...