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

Difference between Window and ApplicationWindow in QML?

https://doc.qt.io/qt-5/qml-qtquick-controls2-menubar.html MenuBar is supported in ApplicationWindow and not in Window. Following throws an error "Invalid property name: MenuBar" Window { visible: true width: 280; height: 280 menuBar:…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
5
votes
3 answers

How to use /std:c++latest with Qt 5.12

Prior to Qt 5.12, we had QMAKE_CXXFLAGS += /std:c++latest in our .pri file but after Qt 5.12 both c++latest and c++14 are being set as visual studio command line parameters in the generated .vcxproj project file. I can get to C++17 via config +=…
jtooker
  • 1,043
  • 1
  • 8
  • 22
4
votes
1 answer

QCursor::pos(); renders wrong coordinates

I have a floating widget which should follow mouse. Now I have another widget, which sometimes changes its position. Before any other widgets resize, everything's ok. After the change my coordinates always go astray and the floating widget is…
Mykola Tetiuk
  • 157
  • 3
  • 9
3
votes
0 answers

Qt3D high CPU usage. No hardware acceleration?

I just recently started to use QT3D for a sideproject at work. And i'm surprised how fast you get something that looks pretty decent (at least for my case). But i still have an issue with rendering speed and CPU usage. I've written a small test…
Der Ebly
  • 41
  • 4
3
votes
1 answer

Disable all light sources in Qt 3d

In my company there is a shift from an old 3D engine to Qt3d. One goal of this undertaking is to compare the rendered view of the old 3D engine with the Qt3d rendering. For this I wrote a small example application, where I can compare old and new…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
3
votes
1 answer

Arguments to C++ signal show up as `undefined` inside QML when a QObject is passed by reference

I have a C++ object with a signal that I connected to a QML handler. However, even though I am passing arguments to the signal, the QML arguments show up as undefined. With Balloon and Air as custom QObjects, I'm connecting Balloon's signal void…
Justin
  • 24,288
  • 12
  • 92
  • 142
2
votes
1 answer

no match for ‘operator>>’ (operand types are ‘QDataStream’ and ‘QJsonObject’)

I got this error when I using Qt 5.12 on Ubuntu Focal. However when I use Qt 5.13.2 and up, no error was shown. I want to get it work in 5.12 and lower, what should I to do achieve that? TQProfile::TQProfile() { type = "abc"; abcSettings =…
Hhry
  • 823
  • 1
  • 8
  • 19
2
votes
1 answer

qmake keeps adding -s (strip) to debug build, how do I disable stripping?

QT Version used: 5.12.6 I'm trying to build the example from QTWebEngine (quicknanobrowser) with debug symbols. I kept getting a binary without debug symbols, even when explicitly setting CONFIG+=debug or CONFIG+=debug nostrip. After many…
Alexander Mol
  • 21
  • 1
  • 4
1
vote
1 answer

The second letter 't' in 'tt' is a little bigger than the first one

I develop an application in Qt/C++ with Qt 5.12.12 on Windows 10. I have some *.ui files including simple QLabel widgets to display text in Calibri font, with 16 points size. Here is an example of what is displayed on screen when "tt" is present in…
Laurent H.
  • 6,316
  • 1
  • 18
  • 40
1
vote
1 answer

Maximize QMdiSubWindow in QSplitter

I have QSplitter set as the central widget: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), mdiArea(new QMdiArea) { QWidget *widget = new QWidget; widget->setMinimumSize(100, 100); QSplitter *splitter = new…
razor3x
  • 118
  • 6
1
vote
1 answer

Qt: Increase resolution of map

I have a map whose visibleRegion I set to a given georectangle, but the resulting render has a terrible resolution. As I understand it, the map loads the tiles from a lower zoomLevel and scales it up to fit the visibleRegion, instead of loading…
cyuanli
  • 41
  • 4
1
vote
0 answers

Qt: Add margins to the visibleRegion of a Map

I have a Map that fills the window and some locations from which I generate a georectangle. I want to set the visibleRegion of the Map to the georectangle but I also want a margin (in pixels) a the bottom of the window for overlays, so that the…
cyuanli
  • 41
  • 4
1
vote
2 answers

How do I get a child of a QDialog (access a button) with an enum?

I've got a button, assigned to a QDialog this way: QPushButton *button = ui->buttonBox->button(QDialogButtonBox::StandardButton::Ok); How do I get it as a child from a QDialog? I wanted to…
Mykola Tetiuk
  • 157
  • 3
  • 9
1
vote
0 answers

How to fake QWheelEvent for tests?

I need to make a test with googletest a function: void SomeClass::changeSomething(QWheelEvent *event) { if (event->delta() > 0) { _data += _increment; } else { _data -= _increment; } } How do I fake…
Mykola Tetiuk
  • 157
  • 3
  • 9
1
vote
1 answer

Qt virtualkeyboard assertion error in 5.15.2 vs 5.12.3

I recently updated my Qt version from 5.12.3 to 5.15.2. I rebuilt an application that uses a qt virtualkeyboard in QML using InputPanel {}. The virtual keyboard is defined in main as qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));.…
slayer
  • 643
  • 7
  • 14
1
2 3