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].

Qt (pronounced officially as cute (/kyut/) though commonly pronounced as (/ˈkyu ti/)) is a cross-platform application development framework widely used for the development of GUI programs (in which case it is known as a widget toolkit), and also used for developing non-GUI programs such as console tools and servers. wikipedia

Qt is developed and maintained by The Qt Company which is subsidiary of Digia.

Qt also provides an integrated development environment named Qt Creator. Though it mainly aims at creating Qt applications, it can be used to create regular C++ applications too.

Resources:

Tagging recommendation:

You will often see questions tagged specifically as , or to indicate that the user experiences the problem in Qt 3.x, 4.x or 5.x, respectively. The default when version information is lacking is to assume version 5.x of the API.

8717 questions
3
votes
2 answers

QWidget for showing text with small pictures (icons/emoticons)

Does such widget exist? I can write my own widget based on QLabels and layout similar to http://qt-project.org/doc/qt-5/qtwidgets-layouts-flowlayout-example.html, but then I can't select all text and copy (because this is just a set of labels).
Krzysztof Stanisławek
  • 1,267
  • 4
  • 13
  • 27
3
votes
2 answers

Qt: Segmentation fault with qobject_cast

In the Qt documentation, there is an example on the use of qobject_cast. Following this example, I tried this: #include #include #include void test_cast(QObject *returnedObject) { QTimer *timer = new QTimer; …
Tranqyll
  • 33
  • 6
3
votes
1 answer

Cannot create certain QML types in a singleton

I have a QML singleton for use in styling defined as follows: pragma Singleton import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.1 QtObject { property ProgressBarStyle progressBarErrorStyle: ProgressBarStyle { …
Tim
  • 4,560
  • 2
  • 40
  • 64
3
votes
1 answer

Qt: list of dynamic properties set on a given QObject?

Using QMetaObject I am able to browse all properties defined at compile-time using Q_PROPERTY macro... Now I would be able to browse all dynamic properties added at run-time using setProperty()... Is it possible?
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
3
votes
0 answers

How can you determine what has been deleted from a QTextDocument as the user types?

I have a mapping in my application that must be maintained for every line. When the user deletes a line, I'm trying to detect which line so I can update my mapping. The contentsChange signal has where in the document a change occurred and how many…
johnb003
  • 1,821
  • 16
  • 30
3
votes
0 answers

Qt - Expanding layout to maximum size in Dock Widget

I'm working on little CAD like program for our indie game project. I already have nicely working form with a bunch of widgets and so on. But one thing is bothering me. I'm using DockWidgets and inside these i have QTableWidget and empty Horizontal…
Gob
  • 73
  • 2
  • 6
3
votes
1 answer

Appending object with Javascript array to a QML ListModel causes SEGFAULT

I am using QtQuick on Android. I am trying to append a Javascript object with an array property to a ListModel. I use LocalStorage to store this data. The object I materialise from the database has this array property, and when I try and append that…
caprica
  • 3,902
  • 4
  • 19
  • 39
3
votes
1 answer

QtQuick: cannot playback any video on embedded linux

I cross compiled Qt 5.2.1 for TI AM335x board using the toolchain provided by TI together with their SDK 6.00.00. Unluckily I am not able to reproduce any video in QML... The debug console tells: defaultServiceProvider::requestService(): no service…
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
3
votes
1 answer

Qt 5.2.1 how to reconfigure?

When I configure Qt 5.2.1 the makefile says that you should run make confclean if the configuration should be changed. confclean no longer exists, and using google I found some postings which confirm this. I don't have GIT and using make clean also…
Devolus
  • 21,661
  • 13
  • 66
  • 113
3
votes
1 answer

Gstreamer : gst_element_factory_make() : always fail and return NULL : Qt5

My problem is, I cannot create Gstreamer element. I am creating Gstreamer project using Qt 5.2.1 What I am doing : gst_init( NULL, NULL ); GstElement *m_pipeline = gst_pipeline_new ("pipeline1"); GstElement *m_rtspSrc =…
AB Bolim
  • 1,997
  • 2
  • 23
  • 47
3
votes
1 answer

Backspace key doesn't work in FakeVim insert mode

On Windows, I enabled FakeVim mode in QtCreator. I found that pretty much everything I need works fine except the Backspace key. While in insert mode, hitting backspace key does nothing. I have attempted various :set backspace commands to fix…
Chris
  • 619
  • 2
  • 9
  • 18
3
votes
1 answer

QT5 eglfs on embedded linux (TI am355x evm starter kit)

I’ve just cross-compiled QT 5.2.1 for ARM and I am using it on a TI AM335x EVM (Starter Kit) board. I’de like to use the eglfs platform, but unluckily it shows some artifacts on the screen… I just made a simple program for showing the problem and…
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
3
votes
1 answer

Qt5 migration: Cannot open include file: 'qtconcurrentexception.h': No such file or directory

I'm migrating a project to Qt5, and I'm getting this error (it compiles fine for Qt4): fatal error C1083: Cannot open include file: 'qtconcurrentexception.h': No such file or directory for this line: #include I include…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
3
votes
2 answers

In a QTableView, how can I make horizontal header cells display vertical text?

I wish to make horizontal header cells in a QTableView display text from top to bottom (i.e., vertically), how can I do this? Example PyQt5 app which displays a QTableView with a horizontal header showing text in the normal direction: from…
aknuds1
  • 65,625
  • 67
  • 195
  • 317
3
votes
3 answers

QtQuick 2 Transparent Window Background

I've been searching how to make the background of my QtQuick 2.0 application transparent. Most answers I've found use QtDeclarative which is ok for QtQuick 1.0 but not version 2. Finally I found an answer that I will post but I would like to know…
George Sofianos
  • 1,141
  • 1
  • 13
  • 26
1 2 3
99
100