Skip to main content

Questions tagged [qt5]

Questions specifically for version 5.x of the Qt library. If your question applies to other versions of Qt, use the tag [tag:qt4] or [tag:qt3]. It is recommended to use with the tag [tag:qt].

qt5
168 votes
4 answers
82k views

Connecting overloaded signals and slots in Qt 5

I'm having trouble getting to grips with the new signal/slot syntax (using pointer to member function) in Qt 5, as described in New Signal Slot Syntax. I tried changing this: QObject::connect(spinBox,...
dtruby's user avatar
  • 1,815
86 votes
7 answers
66k views

Project ERROR: Unknown module(s) in QT: webkitwidgets

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) in ...
user1251007's user avatar
  • 16.5k
74 votes
4 answers
142k views

How to create/read/write JSON files in Qt5

Qt5 has a new JSON parser and I want to use it. The problem is that it isn't too clear about what the functions do in layman's terms and how to write code with it. That or I could be reading it wrong. ...
Jim Kieger's user avatar
67 votes
3 answers
60k views

Is there a tutorial specifically for PyQt5? [closed]

I am looking for a PyQt5 tutorial. It is rather complicated to start GUI development with Python for the first time without a tutorial. I only found some PyQt4 tutorials so far, and since something ...
WeGi's user avatar
  • 1,906
65 votes
4 answers
40k views

Building Qt 5 on Linux, for Windows

I wanted to migrate my Qt 4 app to use Qt 5 instead. These instructions failed, due to some differences with how MXE builds Qt 5, including the fact that it uses modularised Qt tarballs, instead of ...
tshepang's user avatar
  • 12.3k
65 votes
4 answers
4k views

How to generate video file from QImage sequence using QMediaRecorder in Qt5 C++

Basically what I want is to encode a video using QMediaRecorder by supplying as a source a sequence of QImages that I generate in custom code at run-time. So far I have found no easy way to do this, ...
Mr. Developerdude's user avatar
61 votes
2 answers
20k views

Is there any difference between QRegularExpression and QRegExp?

I see there is a new class for regular expressions - QRegularExpression. Is it just a typedef for QRegExp, or a new class, or what? And why do we need it, we already have QRegExp?
sashoalm's user avatar
  • 78.1k
59 votes
3 answers
33k views

Qt Creator, ptrace: Operation not permitted. What is the permanent solution?

While debugging C++ code in Qt creator I get the following error ptrace: Operation not permitted. Could not attach to the process. Make sure no other debugger traces this process. Check the settings ...
Indra's user avatar
  • 1,348
58 votes
1 answer
50k views

QTextEdit vs QPlainTextEdit

What's the difference between QTextEdit and QPlainTextEdit, why use one over the other? I'm coding a text editor as an exercice to learn Qt5, and now I'm wondering whether to use QTextEdit or ...
Markus Meskanen's user avatar
53 votes
1 answer
993 views

Qt5 VideoOverview example does not work. Any solution?

I am stuck for a month with a video example given in Qt Video Overview. I tried that code, but I only got a blank square (QWidget). I am using GStreamer0.10 for media playback over Qt5. I also played ...
user avatar
52 votes
6 answers
97k views

How to find the Qt5 CMake module on Windows

I'm trying to make a very basic Qt5 application using CMake on Windows. I used the documentation of Qt5 to use CMake, and my main.cpp file just contains a main function. My CMakeLists.txt is exactly: ...
dzada's user avatar
  • 5,714
50 votes
5 answers
69k views

Building Qt5 with Visual Studio 2012 / Visual Studio 2013, and integrating with the IDE

How do you get Qt5 to download and integrate with Visual Studio 2012? What are some of the problems you will encounter, and how do you solve those problems? UPDATE re. Visual Studio 2013 Successes ...
MirroredFate's user avatar
  • 12.7k
48 votes
8 answers
98k views

Dark theme for Qt widgets?

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 ...
sunyata's user avatar
  • 2,091
47 votes
8 answers
30k views

Image rounded corners in QML

To my surprise, the Image component has no radius property. I tried emulating the rounded corners by putting the image in a rounded Rectangle, but it does not clip the corners. Rectangle { ...
Tamás Szelei's user avatar
45 votes
4 answers
21k views

Disconnecting lambda functions in Qt5

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 the ...
alexandernst's user avatar
  • 14.9k

15 30 50 per page
1
2 3 4 5
585