Questions tagged [qt5.9]

Use this tag only for questions specific to Qt 5.9 and not relevant to other versions.

Qt is a cross-platform application development framework for desktop, embedded and mobile. Supported Platforms include Linux, OS X, Windows, VxWorks, QNX, Android, iOS, BlackBerry, Sailfish OS and others.

Qt is not a programming language on its own. It is a framework written in C++. A preprocessor, the MOC (Meta-Object Compiler), is used to extend the C++ language with features like signals and slots. Before the compilation step, the MOC parses the source files written in Qt-extended C++ and generates standard compliant C++ sources from them. Thus the framework itself and applications/libraries using it can be compiled by any standard compliant C++ compiler like Clang, GCC, ICC, MinGW and MSVC.

For more information https://wiki.qt.io

65 questions
12
votes
2 answers

How to link Qt 5.9 in ROS?

The following CMakeList produces errors which have been listed below: cmake_minimum_required(VERSION 2.8.12) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
12
votes
4 answers

How to make QtLinguist shipped with Qt 5.9.1 work?

Goal: Generate/update the *.ts files of a Qt widgets app using lupdate. Setup: Windows 7 Pro 64 (tried on Windows 10 Home as well) Qt 5.9.1 Prebult Components for msvc2017 64-bit, Visual Studio Community 2017. The problem: I have run lupdate from…
scopchanov
  • 7,966
  • 10
  • 40
  • 68
6
votes
2 answers

g++ is used by qmake and gcc is configured by the kit

"/usr/bin/g++" is used by qmake, but "/usr/bin/gcc" is configured in the kit. please update your kit of choose a mkspec for qmake that matches your target environment better. couldn't find any way how to change the complier used by qmake to match…
Zak
  • 103
  • 1
  • 7
5
votes
3 answers

Is this the Minimum Viable TreeView Model in QML?

I'm making a folding list of three items: "Hey", "Whats", and "Up?". I want to put it into a tree view. I know this list will only ever contain these three items. Therefore, I would like to know how to "nest" these items together. I know there are…
Tyler M
  • 352
  • 4
  • 21
5
votes
1 answer

Qt - Q_PROPERTY's NOTIFY signal not emited about MEMBER change

I have a private class member variable status and i want to emit a signal with its value everytime it changes. Therefore I use Q_PROPERTY and specify a signal with NOTIFY: #ifndef CAMERACONTROL_H #define CAMERACONTROL_H #include #include…
goulashsoup
  • 2,639
  • 2
  • 34
  • 60
4
votes
3 answers

Preprocessor division by zero while evaluating `QT_CONFIG(printer)`

Compiling with g++ (from Makefile generated with qmake) using the line #if !QT_CONFIG(printer) // do something #endif gives a preprocessor error on both g++ (7.3.0) test.cpp:25:6: error: division by zero in #if #if !QT_CONFIG(printer) and…
pba
  • 524
  • 3
  • 13
3
votes
1 answer

Build QtWebEngine 5.9.1 with proprietary codecs

We need to support to mp4 file in QtwebengineView. So we are trying to build qtwebengine of Qt 5.9.1 on msvc2015 x64, with proprietary codecs, by using following command at cmd with working directory is qtwebengine in…
hetal agrawal
  • 53
  • 1
  • 1
  • 8
3
votes
0 answers

Difference between Qt's QML JS engine on Mac and Windows

I have upgraded my project from Qt 5.6.2 to Qt 5.9.4 Had a couple of issues on mac when I tried to build for the first time with the new Qt version, but nothing major. I have merged these changes and switched to Windows in order to try to build my…
Silex
  • 2,583
  • 3
  • 35
  • 59
3
votes
1 answer

Force Qt-Window to specific screen

I have a Windows-system with two monitors connected to it that itself expand the Windows-desktop. Now I want to start two Qt-applications but need to force each of them to a specific monitor, means application A always has to open it's window on…
Elmi
  • 5,899
  • 15
  • 72
  • 143
3
votes
1 answer

Include Anaconda python 3.6 in Qt C++ application without Anaconda's Qt version

I want to include Anaconda's Python 3.6 in my Qt C++ application. The reason why is that I want to be able to include a neural network in my C++ application, which is written in Python. I tried to include Python in the following way, which I found…
Florian Blume
  • 3,237
  • 17
  • 37
3
votes
2 answers

How to deploy Qt imageformats plugins on Android

I'm trying to get image format plugins working on Android. My plan is to build this APNG image format plugin, which closely follows the style of the official Qt extra image format plugins. The answer to my problem will be the same for these too. On…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
3
votes
0 answers

Qt 5.9 OpenGL buffers cleanup

I recently updated to Qt 5.9. The application I'm working on uses QOpenGLWidget and QOpenGLBuffers. I noticed that since Qt 5.9, the QOpenglWidget destruction is really slow and makes the application exits really slowly. Any suggestions/ideas to…
M. Brigaud
  • 126
  • 6
2
votes
1 answer

Why can't I connect QWebsocket::error SIGNAL to a lambda or any other SLOT type with identical signature? QT5.9

I'm trying to build a simple program that implements a QWebSocket, however, what I first tried to do is check if the connection is enabled. It didn't throw any exception since I never connected the error signal but I could check on my cloud server…
2
votes
1 answer

Why does the border of QWidget cover the contents?

I have a custom widget derived from QWidget, which has a minimumSize of (30, 30) and a QLabel as a childWidget: MyWidget::MyWidget (QWidget *parent, QPoint p, QWidget *childWidget) : QWidget (parent) { childWidget =…
adi
  • 984
  • 15
  • 33
2
votes
0 answers

Is resolution independent UI possible directly using QtDesigner?

I want to create a UI which remains the same in all possible resolutions. I started with the Qt Designer wherein I set the geometry of my design window and when I change the resolution , the UI is not the same. Things I tried: 1.I got the screen…
george
  • 339
  • 3
  • 12
1
2 3 4 5