qt5 Questions

2

Solved

Here is my setup: A background process that keeps running and does it's job. A launcher which launches the aforementioned process and monitors it, relaunches it if crashed or killed. I wish to...
Grout asked 21/1, 2017 at 14:40

4

Solved

I want change only the height, I need it larger.
Clamant asked 12/10, 2018 at 11:45

8

Solved

Background I'm building a PyQt5 application, that I'd like to have a dark theme for. Previously I've worked with Android development where there was a dark theme that I could set for a whole appli...
Craigcraighead asked 15/1, 2018 at 3:59

4

Solved

I am trying to do nested properties like 'font.family' or 'anchors.fill', but I cannot initialize them in normal way because it prints 'Cannot assign to non-existent property'. Instead I am forced ...
Jeff asked 27/1, 2015 at 11:42

3

Solved

I Have a JSON model, and I populate it with QTreeView: *-group1 | | | *-item1 value1 | | | *-item2 value2 | *-group2 | *-item4 value3 Now I want to disable selection for groups, so that user ...
Batfowl asked 27/1, 2016 at 14:13

8

First of all, I'd like to mention that I found that related post How to get the mouse position on the screen in Qt? but it "just didn't work" for me. I made some tests, and the results didn't work ...
Schulman asked 16/8, 2015 at 21:39

4

Normally, to add a database to qt, we would go to the .pro file and add sql, but the project am working on was imported from cmake, so it does not have a .pro file. Rather it has a CMakeLists.txt f...
Pronominal asked 11/7, 2016 at 20:46

6

Solved

This question is asked several times in Stack Overflow. I tried methods in several discussions but it didn't work. So my OpenCV library which was built with custom Qt doesn't work properly: import...
Ski asked 19/1, 2020 at 11:44

4

I downloaded the .exe installer from download.qt.io, but it asks me to login to continue to install. I recall there is a skip button on the installation window to bypass the login in the past Qt re...
Polito asked 10/6, 2021 at 4:17

5

Solved

I use QT Creator on surface pro4 and the font of menu is too small: what should i do to change the font size? version:5.5
Kristofor asked 29/3, 2017 at 14:17

3

Solved

I have two classes A and B, here is a snippet in B.h: #include "A.h" class B : public QDialog { Q_OBJECT public: void do_something(); private: A *a; } and in B.cpp: B::B(QWidget *parent) : ...
Habitant asked 3/12, 2013 at 13:57

5

Solved

I develop an application using Visual Studio 2015 + Qt VS Tools extension. For me it's first time I used Qt (version 5.14.1) in my project. Everything was working fine until something wrong happene...
Durga asked 21/5, 2020 at 19:11

2

Solved

So when programming in Qt I like to go with the Qt implementation as far as possible. As far as I've seen there's no Qt version of the std::unique_ptr or is there? What would be the alternatives t...
Ingenuous asked 11/9, 2014 at 11:53

13

Solved

This happens even on a freshly created, empty project. The Run (and also Debug) buttons are disabled for the Qt5 configuration (they're enabled for the Qt4 configuration). The build button is not ...
Holliehollifield asked 2/6, 2014 at 17:9

8

Solved

I have installed gqcnn, Pyrep and autolab_core. After that, I executed the code that my coworker wrote and, it ran fine on his computer. However, I cannot run the code. The occurred error was pytho...
Doorframe asked 10/9, 2020 at 12:46

3

Solved

I'm currently reading the QML docs, and I realized that there is no explanation on how to define the app icon. I tried something, but this doesn't work: int main(int argc, char *argv[]) { QCoreA...
Dacy asked 4/1, 2017 at 18:52

4

Solved

I want to have a QTreeView without an indentation on the left side increasing at each nesting level. I tried setting QTreeView::setIndentation(0). It removes the indentations just as I want, howeve...
Territus asked 3/5, 2019 at 12:33

2

Solved

I have three buttons that are in an ExclusiveGroup: ExclusiveGroup {id: group} Button{ checkable: true exclusiveGroup: group } Button{ checkable: true exclusiveGroup: group } Button{ checkabl...
Stopping asked 19/3, 2015 at 8:7

4

Solved

Is it possible to disconnect a lambda function? And if "yes", how? According to https://qt-project.org/wiki/New_Signal_Slot_Syntax I need to use a QMetaObject::Connection which is returned from th...
Aquarelle asked 12/2, 2013 at 8:49

3

Solved

I want to align Rectangles in a RowLayout left to right. In below code example two Rectangles share additional space instead stack one after another. I used Layout.alignment: Qt.AlignLeft in RowLay...
Archicarp asked 8/11, 2017 at 18:20

3

Solved

I've recently updated all msys2 packages and now I can't build my project. The error occurs at the moment of linking one of .dlls - target_library.dll. The error message isn't clear to me. What do...
Isahella asked 13/7, 2017 at 10:21

7

Solved

I am porting code from qt4 to qt5. I added the following line to my .pro file, as suggested: QT += webkitwidgets However, when I run qmake, I get the this error: Project ERROR: Unknown module(s...
Pyroxylin asked 9/9, 2013 at 13:31

2

Solved

Is it possible to get Qt error messages when using dynamically created items? I've installed a message handler to capture Qt output at run time: qInstallMessageHandler( myMessageOutput ); I loa...
Berlioz asked 2/8, 2013 at 18:56

2

Solved

I use QGridLayout very often, and there's a requirement I don't know how to or if I can achieve with this kind of layouts. My question: Imagine I have two normal widgets (derived from QWidget) on t...
Hiro asked 8/1, 2017 at 2:41

4

I'm using Qt 4.5 to translate a .ts file to a .qm file. But now I've lost the .ts file. How can I convert it back - from .qm to .ts?
Cliffordclift asked 3/9, 2015 at 10:44

© 2022 - 2025 — McMap. All rights reserved.