Questions tagged [qt5.12]

Tag specific to Qt5.12. Use it together with more generic tags [qt5] or [qt]

Q5.12 was released on Dec 2018 and has several new features

Links

37 questions
1
vote
0 answers

OpenGL ES Framebuffer size format is invalid

After I upgraded my Embedded Qt 5.9.8 Application to Qt version 5.12.8 I got the warning "Setting framebuffer size is only available with DRM atomic API". The application run on a i.MX6 Solo System On Module (OS Yocto Warrior Linux, Kernel 4.19). I…
rouwoust
  • 41
  • 5
1
vote
1 answer

How to programmatically stop editing QTreeWidget in Qt?

I have a QTreeWidget and two buttons "+" and "-". When I press "+" I want to add new item to QTreeWidget and I want that item to be in edit mode. I managed to do that with following code (it gets called every time "+" is pressed): //…
dosvarog
  • 694
  • 1
  • 6
  • 20
1
vote
1 answer

How to set returnKeyType for iOS from QML

I have a QML TextField as an input for a search field. Natively in iOS when a user clicks on the TextField the default iOS keyboard is presented. The "returnKey" of the default iOS keyboard just says "done". I would like it to say "Search"…
DaveK
  • 658
  • 8
  • 21
1
vote
1 answer

Qt API to check if wifi is enabled/disabled

Is there a way in Qt application framework to check if wifi is enabled? And does the way work for Android, iOS, macOS and Windows? Note that I want to check if wifi is enabled or not. i don't bother if I have internet connectivity. Environment: Qt…
AdeleGoldberg
  • 1,289
  • 3
  • 12
  • 28
1
vote
1 answer

QML map zoom only verticaly

Does map in Qt have a property, so it doesn't move center if I move mouse cursor on random place on map and try to change zoom level with mouse wheel? Because on default, map zooms, but moves existing center towards mouse cursor location (example on…
tomazj
  • 303
  • 3
  • 13
1
vote
2 answers

QTimer slot triggered for multiple time?

I'm creating a UI application for Raspberry PI to read data from sensor on definite timeout (5 seconds). Problem is the QTimer timeout slot is called for multiple times { //at system init readTempCur = new QTimer(this); connect(readTempCur,…
Kanni1303
  • 73
  • 11
0
votes
0 answers

why must use Qt::DirectConnection when use moveToThread function?

I have three class MainWindow, BusCom and ReceiveMessageThread. MainWindow class object has a member variable of BusCom type, and BusCom class object has member variable of ReceiveMessageThread type. Creats a thread for one function of…
patricxian
  • 51
  • 4
0
votes
1 answer

Why will threading with Qt 5.12 successfully update a QLabel in one function but will crash in another similar function?

Currently writing a GUI application that launches from and interfaces with The Foundry's Nuke, a visual effects compositing software (although this is not the issue AFAIK, since it's repeatable inside an IDE). I am attempting to figure out why…
0
votes
1 answer

Problem with setWindowFlags function when migrating from qt 5.12 to 5.15

This is the line of code that breaks when I moved my project from QT 5.12 to QT 5.15. setWindowFlags(Qt::Window | Qt::FramelessWindowHint); The error that is thrown is the following: mainwindow.cpp:28:5: error: cannot initialize object parameter of…
Brian
  • 1
  • 1
0
votes
0 answers

How to achieve mouse click in a QDialog while testing?

That's automated testing in Qt. I've got an table of a class inheriting QAbstractItemView, which I get this way from a QDialog dialog: auto *table = window->findChild("myTable"); I've got a point to click, which proves to…
Mykola Tetiuk
  • 157
  • 3
  • 9
0
votes
0 answers

Install Qt5.12 on travis-ci linux

I'm seeing following error while trying to Install Qt5.12 on travis-ci linux. Someone please help $ ./qt-opensource-linux-x64-5.12.10.run QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3"…
user1905
  • 15
  • 6
0
votes
1 answer

How to display Image receive from TCPsokcet and display in QML

I want to implement the complete pipeline as : opencv (clientapp on Linux platform) ---socket---> QT(server opencv on QT platform) transfer the image using opencv c++ function through socket and display image in QMl. I have called the opencv c++…
0
votes
1 answer

QVector::contains fails with checks against constants

Environment as stated in the tags too: GCC 64bit, Qt 5.12 I have the following example code: // test.h #include class Test { Test(); // Same results with QSet const QVector things = { BANANA, …
Matteo
  • 1,107
  • 2
  • 27
  • 47
0
votes
0 answers

QML: How to display certain parts of Text in different colors

I have the following QML Text embedded inside a Rectangle Rectangle { id: textContainer border.color: "black" Text { id: myTextView anchors.fill: textContainer anchors.margins: 10 font.pointSize: 4 …
AdeleGoldberg
  • 1,289
  • 3
  • 12
  • 28
0
votes
0 answers

Is there any way to stop Qt 5.9 from replacing values of versionCode and versionName in apk's AndroidManifest.xml?

Values of platformBuildVersionCode (versionCode) and platformBuildVersionName (versionName) are always replaced with the values of targetSDKVersion and targetSDK in apk's AndroidManifest file. I have tried below ways. Modified these fields from…