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
0
votes
2 answers

Why is my child widget enabled inside an unchecked QGroupBox?

When I enable a child of my QGroupBox after unchecking the group box, that child is enabled. But if I do the same to a grandchild widget, that widget remains disabled. I would expect all children of an unchecked group box to act the same as all…
jtooker
  • 1,043
  • 1
  • 8
  • 22
0
votes
0 answers

Quick'n'Dirty: Measure memory usage?

There's plenty of detailed instructions to measure C++ memory usage. (Example links at the bottom) If I've got a program processing and displaying pixel data, I can use Windows Task Manager to spot memory leakage if processing/displaying/closing…
PhilPhil
  • 173
  • 4
  • 18
0
votes
0 answers

How can I check that my qt application will run with OpenGL2.0 and GLSL?

I am developing applications using Qt5.9 and OpenGL/GLSL (use QOpentGLWidget). My qt application needs to run on OpenGL 2.0, but my PC supports OpenGL 4.3. How do I check whether it works with OpenGL 2.0 (or an error)?
0
votes
2 answers

How to improve ListView performance during scrolling in qt/qml

I am facing serious issues while scolling ListView when there is costly delegate. When i am scrolling listview, its jerky. Some once please help on this. Here is my sample code /LIstview with some dummy costly delegate, I tried using loader to load…
Jeggu
  • 569
  • 2
  • 10
  • 26
0
votes
0 answers

QAbstractSocket::UnsupportedSocketOperationError with QSslSocket

QAbstractSocket throws UnsupportedSocketOperationError when connecting to a host over QSslSocket::connectToHostEncrypted(), Environnement: Qt 5.9.3 Ubuntu 16.04 (virtual machine) also Qt 5.9.3 Fedora 26 (native) _socket = new…
tbone
  • 23
  • 6
0
votes
1 answer

How to connect to FTP and download file using Qt?

Toolbar for FTP On the picture you can see my GUI for my test project. What I want to do is: Enter a ftp-url in the line-edit, connect/disconnect to the FTP-server and when I am connected, load a file from the server (button on the left). I have Qt…
erniberni
  • 313
  • 5
  • 17
0
votes
1 answer

new QFile("some.txt") fails with "device not open" when windows screen locked

Consider this very simple example: for(;;){ QFile *file = new QFile("some.txt");//this is where it fails with "device not open" when windows screen is locked if(file->exists()){ file->open(QFile::ReadOnly); QString contents =…
Emre Beşirik
  • 57
  • 1
  • 11
0
votes
1 answer

How to access a qml ListElement from c++

I have a ListModel: ListModel { ListElement { property: "value" } ListElement { property: "value2" } } which I am trying to access from a c++ Qt class. I've managed to get a reference to the listmodel: QQmlEngine…
Piotr Adam Milewski
  • 14,150
  • 3
  • 21
  • 42
0
votes
1 answer

How to dynamically swap QWidgets

I have a QMainWindow which contains, on the left, a QTreeWidget and, on the right, another QMainWindow with windowFlags set to Qt::Widget. This is because the QMainWindow is the only way to provide docking functionality to a QWidget. (I want the…
Telokis
  • 3,399
  • 14
  • 36
0
votes
1 answer

Make QToolButton show menu on top in Qt 5.9

Is there a way for a QToolButton to display its associated QMenu on top of it instead of below? I have seen this answer which pleased me but it's in Python and I don't really know how to port it properly. I also took a look at the source code for…
Telokis
  • 3,399
  • 14
  • 36
0
votes
1 answer

QtWebengine build error with opus and silk codecs

I am trying to build Qt5.9.1 with QtWebengine for an arm platform. These are some architecture based arguments i am passing to the build. QMAKE_CFLAGS_RELEASE += -march=armv7-a -mcpu=cortex-a9 QMAKE_CXXFLAGS_RELEASE += -march=armv7-a…
user7356938
0
votes
1 answer

How do I create my .run file to install Qt 5.9.0 on 32-bit debian?

As per my information, Binaries (or offline/online installers) for installing Qt (>= 5.6) on 32-bit linux are not provided. For example, If I want to use Qt 5.9.0 on 32-bit linux (debian, specifically), the only option is to download Qt source and…
harihardik
  • 494
  • 1
  • 5
  • 15
0
votes
2 answers

QML - How do I make the TabButtons in TabBar visible?

I'm using qtcreator 4.4.1 with qt 5.9.2-1 on linux I'm trying to create a tabbar with a stackview so that I can switch between the different tabs. But the tabbuttons in the tabbar never show up, and they aren't functional either if I click the area…
0
votes
0 answers

Error in creating Qt project in Visual studio 2015

I am trying to create a qt project in Visual Studio 2015. My qt's version is 5.9. It was unable to create and a dialog showed with message as below : Operation could not be completed. The project file…
Kanguru
  • 51
  • 4
0
votes
1 answer

Unable to build Qt 5.9.0 with Android

I am facing issue while compiling Qt with android.Kindly help me to solve this issue. issue : FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android-build'. Could not resolve all dependencies…
narthan_l
  • 21
  • 7