Questions tagged [qt5.4]

Version 5.4 of the Qt C++ GUI library. Tag this only for the issues with Qt 5.4 not other versions.

Version 5.4 of the Qt C++ GUI library.

173 questions
32
votes
3 answers

QWebView or QWebEngineView

Are there any functional differences between QWebView and QWebEngineView? If I understand correctly, QWebView is webkit, while QWebEngineView is blink. Are there any differences to the programmer? Does one offer more customization of look & feel…
graywolf
  • 7,092
  • 7
  • 53
  • 77
31
votes
1 answer

Handling Downloads in QtWebEngine

We are currently migrating a project from the QtWebkit to the QWebEngine. However, handling downloads is causing a bit of a headache. Previously we handled this using the QWebPage::unsupportedContent signal, like so: QWebPage* webPage = new…
StickyCube
  • 1,721
  • 2
  • 17
  • 22
30
votes
4 answers

No default repositories in Qt Maintenance Tool

I recently installed Qt 5.5 and its MaintenanceTool (MaintenanceTool.exe). The default repositories were working, but after one day, my MaintenanceTool suddenly reported that no repositories were set. I can temporarily enter individual repositories…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
18
votes
5 answers

Qt 5.4/Qml: Prevent binding loop

I have a global singleton "Settings" which holds application settings. When I try to run the following code I get a QML CheckBox: Binding loop detected for property "checked": CheckBox { checked: Settings.someSetting …
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
11
votes
1 answer

QMessageLogContext's fields (like: file, function, line) empty or zero

I have 2 machines Debian 7.8 64/32 bit. I create a simple program. In main.cpp: void action(QtMsgType type, const QMessageLogContext &context, const QString &msg) { static QFile logFile("logfile.log"); static QTextStream ts(&logFile); …
aviit
  • 1,957
  • 1
  • 27
  • 50
10
votes
1 answer

After upgrade to qt 5.5.0 I got warning for QML imports

I just upgraded from 5.4.1 to 5.5.0 today. But when I build my android project I get these lines of warning in compile output: Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private Warning: QML import could not…
a.toraby
  • 3,232
  • 5
  • 41
  • 73
9
votes
3 answers

How can I simply parse a CSS like (!) file in my Qt application?

I have a document in a *.css (Cascading Style Sheets) like format, but it has its own keywords. Actually it is a personalized css (I call it *.pss), with own tags and properties. here I have an excerpt: /* CSS like style sheet file *.pss…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
9
votes
2 answers

Transparent Background in QWebEnginePage

We are trying to port some application from Qt 4 to Qt 5.4. The Qt 5.4 has a new web engine. We used to make the background of QWebView and QWebPage to be transparent: view = new QWebView(this); QPalette palette =…
TerryLu
  • 136
  • 1
  • 5
8
votes
2 answers

glViewport didn't work on Qt5.4 QOpenGLWidget::resizeGL

I put glViewport in QOpenGLWidget::resizeGL overwritted virtual function, which did get called and set viewport only use part of widget space. But it didn't have any effect, content still draw to full-size of widget. Did I missing anything? Here is…
user3724853
  • 547
  • 3
  • 10
8
votes
1 answer

Integrate C++ and QML. Qt 5.4

I was reading the Qt documentation for the past couple of hours trying to figure out a way to make a UI created with Qt Quick UI (QML) communicate (interact) with C++ code (functions... etc.). I've read the 5 or 6 similar questions on here to but…
hekri
  • 307
  • 3
  • 11
7
votes
1 answer

How to enable antialiasing for QOpenGLWidget in QGraphicsView?

I have added QOpenGLWidget to QGraphicsView (don't use setviewport) via QGraphicsProxyWidget: QSurfaceFormat format= QSurfaceFormat(); format->setSamples(4); //<== widget show black screen if samples =4, 1 is ok but not…
lemta
  • 211
  • 3
  • 8
7
votes
3 answers

How to set QML properties from C++

I'm trying to do a simple task as changing a property (text: ) of some QML object from C++ yet I'm failing miserably. Any help appreciated. I'm not getting any errors, the window shows up, just the text property doesn't change as (at least I think)…
hekri
  • 307
  • 3
  • 11
7
votes
1 answer

QGuiApplication stops the event-loop when phone is locked when compiled with Qt 5.3 or Qt 5.4 (but not with Qt 5.2)

I have created a simple program that reproduces the problem. When I lock the phone, or if I switch to another application in my android phone, the worker thread continues printing, but the event loop stops. When I switch back to my application, the…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
6
votes
2 answers

Animation for Qml Loader when loader.source changes

Is there any way to apply animation when we change source of Loader component in QML? For example suppose I have the following Loader: Loader { anchors.fill: parent id: loader } I want an animation from left to right when I set…
a.toraby
  • 3,232
  • 5
  • 41
  • 73
6
votes
1 answer

Qt5 client certificate authentication

I have Qt 5.4.0 on Windows 8.1 and Qt 5.4.2 on ArchLinux latest and get exactly the same result. I have web-site which requires client SSL certificate. Server seems to be configured properly since execution of openssl s_client -connect myserver:443…
adontz
  • 1,428
  • 16
  • 36
1
2 3
11 12