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
2
votes
1 answer

Registering a Python list property to QML in pyside2

I'm trying to load a spreadsheet and pass a list of the worksheets back to my QML interface. But I'm unable to find a way to provide a list(and later a dictionary) back to the QML script. Here's my QML: FileDialog { id: openDialog title:…
MVanOrder
  • 1,281
  • 1
  • 10
  • 19
2
votes
2 answers

QML ScrollBar/ListView sensitivity for mouse wheel. How to adjust

There is QML control ScrollBar , and mouse wheel scrolls the list fast, I need to perform this slower. Which properties can be used for that? Qt 5.9 this is from an examples (rssnews sample project from Qt kit): ... ListView { id: categories …
amigo421
  • 2,429
  • 4
  • 26
  • 55
2
votes
2 answers

QFile.open fails to open a file inside resource qrc

I have encountered a strange issue where QFile.open is unable to open a file which is added in the qrc resource file. My qrc file looks like this I'm using following code to read the file theme_normal.qss QFile…
warunanc
  • 2,221
  • 1
  • 23
  • 40
2
votes
1 answer

QT 5.9 mac installation dose not install webkit

I want to create a QML project with webkit support therefore I use QT += webkit option to load this module but I face with this error at compile time: error: Unknown module(s) in QT: webkit I was installed QT 5.9 on mac OS from installer package.…
1
vote
0 answers

How to compile QT5.9 Webenginewidgets for aarch64 architecture?

I tried to follow the README file to compile all module, but after the compilation finished, I failed to find the WebEngineWidgets module, and when I add "QT += webenginewidgets" in .pro file, it showed a error: Unknown modules in…
levon
  • 11
  • 1
1
vote
1 answer

Qt model drag & drop - Unable to save type QJsonValue

I have a QAbstractListModel to display a QJsonArray, with drag & drop implementation: class NoteListModel : public QAbstractListModel { Q_OBJECT public: explicit NoteListModel(QObject *parent = nullptr); ~NoteListModel() override; …
thibsc
  • 3,747
  • 2
  • 18
  • 38
1
vote
0 answers

How to delete data from the QML treeview model?

Based on the QML example treeview given by Qt, how does one clear an entire tree model without destroying the model? Essentially, I want to wipe all of the items/elements from the tree, without destroying the tree itself. The specific code I am…
Tyler M
  • 352
  • 4
  • 21
1
vote
1 answer

"Object is not defined" in TabView

Trying to get this to work in Qt version 5.9 It seems that whenever I create an object within a QML Tab it is unrecognizable by the parent object (or any of the parent's parents, and so on). How do I get the parent objects to recognize the object in…
Tyler M
  • 352
  • 4
  • 21
1
vote
1 answer

Project ERROR: This mkspec requires Xcode 4.3 or later

Scenario: I have updated to Qt 5.9.6 and I have Xcode 10.0 running on High Sierra. I have a Qt App that builds for OSX and iOS. And it builds and runs all well with Qt 5.9.4. Now, I want to update to 5.9.6 for a reason. When I try to build for iOS…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
1
vote
1 answer

Why is the QScrollArea restricted in size?

To my custom widget, inherited from QWidget, I have added a QScrollArea like this: MainWindow::MainWindow(QWidget *parent) : QWidget(parent)//MainWindow is a QWidget { auto *scrollArea = new QScrollArea(this); auto *widget = new…
adi
  • 984
  • 15
  • 33
1
vote
2 answers

Why does the setspacing attribute not work?

Im new to Qt and experimenting it.I have a layout whose code is given below: MainWindow::MainWindow(QWidget *parent) : QWidget(parent) { QVBoxLayout *parentLayout = new QVBoxLayout(this);//MainWindow is a…
adi
  • 984
  • 15
  • 33
1
vote
1 answer

How to make a custom QWidget partially transparent?

Im a newbie to Qt. I have a custom QWidget. If its (X-coordinate + Width ) value is greater than a particular value;say Z,then I want the QWidget to be visible till the coordinate Z and invisible or transparent after Z. Does Qt provide any…
adi
  • 984
  • 15
  • 33
1
vote
1 answer

QHttpMultiPart upload file boundary issue

I'm trying to upload some files to a server by using QHttpMultiPart. The following version file is just an example. For some reason, Qt will automatically add boundary into the files. However, what I truly uploaded are .tar.gz files and they will be…
Jason Lei
  • 47
  • 4
1
vote
1 answer

QTcpSocket.connectToHost() takes too long time

This is my code for connection with custom TcpServer. In result connectiontoHost() is complitted in 13.5 seconds (some times in 2.5 seconds). Connection to localserver is very fast. The same code with the remote server, but on Qt5.7 works very…
Roman Ozhegov
  • 231
  • 3
  • 15
1
vote
0 answers

Qt versions for 6 architectures are missing

I have just installed Qt 5.9.1 and want to make an app for Android (I'm using Windows 10). I have installed the SDK, NDK and ant and specified the paths in the configuration. But Qt gives the following warning: Qt versions for 6 architectures are…
KMK
  • 1,439
  • 5
  • 21
  • 39