Questions tagged [qt5.3]

Version 5.3 of the Qt library, that is a cross-platform application development application and UI framework. Tag this only for the issues with Qt 5.3 not other versions.

Version 5.3 of the Qt library, that is a cross-platform application development application and UI framework.

More information about new features in Qt 5.3 is here

114 questions
1
vote
0 answers

"getContext()" is working only in OnPaint event handler

I want to draw a line at a fix position in a Canvas. I've written the following code: function drawVLine(){ var ctx1 = myCanvas.getContext("2d"); ctx1.reset(); ctx1.lineJoin = "round"; ctx1.save() ctx1.lineWidth = 2 …
Swanand
  • 4,027
  • 10
  • 41
  • 69
1
vote
1 answer

64-bit Qt application crashes on XP 64-bit (but not on Win7 64-bit)

I am using Windows 7 (64-bit) to develop a Qt (5.3) application. The Visual Studio files are created by CMake. This works fine for 32-bit and 64-bit binaries for Windows 7. CMake Generator for 32-bit is Visual Studio 12 2013, for 64-bit Visual…
Marcello90
  • 1,313
  • 4
  • 18
  • 33
1
vote
0 answers

QDir::exists with mapped remote directory

I use QDir::exists to check directories. However, when the checked directory name (string) points to mapped network directory which is not available, then the function takes pretty long (up to 10secs and longer) to return. How could I realize a…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
1 answer

QtQuick: "StackView: You cannot push/pop recursively"

Getting this error message when running my QML application on Android. It's working fine in qmlscene, though. Code looks like this: main.qml: ApplicationWindow { property Component loaderPage: LoaderPage { onGotoPage: changePage(page) …
snøreven
  • 1,904
  • 2
  • 19
  • 39
1
vote
1 answer

Animate snap in ListView

I would like to animate the "snap" effect when a ListView snaps to a specific item. I enable "snapping" with the snapMode: ListView.SnapOneItem property. Currently it just de-accelerates to the current item and stops, but it would be nice if I could…
uldall
  • 2,458
  • 1
  • 17
  • 31
1
vote
0 answers

0xc000007b while deploying C++ application link w/ Qt 5.3

I'm developing a C++ application that dynamically link against Qt, boost and Assimp. I compiled it in Release mode with /MD and it works fine on my computer. However, if I try to run it on another machine I get the 0xc000007b error (The application…
Gpack
  • 1,878
  • 3
  • 18
  • 45
1
vote
0 answers

QTableView loses focus for no reason

I have been trying to figure out why this happens but in vain. I have a QTableView that has different delegates (QStyledItemDelegate inherited classes) for each column. I tested the delegates in another view and they work fine. My problem is that…
fonZ
  • 2,428
  • 4
  • 21
  • 40
1
vote
2 answers

QButtonGroup setExclusive() issue

I'm trying to group a few QPushButton`s into QButtonGroup with exclusive checking, but after launch i'm still able to check multiple buttons. // pen toggle button penB.setSizePolicy(QSizePolicy::Minimum,…
Ivan
  • 876
  • 1
  • 8
  • 22
1
vote
2 answers

(Qt5, Threads) The examples I'm following don't work

Sorry I’m not experienced enough to understand the error I’m getting and I have been trying now for weeks to understand what the problem is. WHAT I NEED TO ACCOMPLISH: Run multiple threads to control hardware and tests at the same time. MY CODE: I…
Achmed
  • 11
  • 1
1
vote
1 answer

QSerialPort gives error "no such file or directory"

Used example from here on Ubuntu 14.04 with Qt 5.3 foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) { qDebug() << "Name : " << info.portName(); qDebug() << "Description : " << info.description(); qDebug()…
neau
  • 317
  • 1
  • 12
1
vote
1 answer

Dynamically loaded QML-file in Tab will only be executed when Tab is shown

I'm creating Tabs in a TabView dynamically via var component = Qt.createComponent("file://tabcontent.qml")); tabView.addTab(component); However their code is not executed before I click on the Tab itself. How can I solve this?
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
2 answers

Load property from QML-file in C++

I'm building a plugin-system for my QML+C++ application. The plugins are QML-files. A qml-file could look like this: Item { title: "Sexy Plugin" version: "1.0" } How can I read title and version within C++?
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

QDockWidget with QStatusBar possible?

For a QMainWindow I can easily set a status bar. When I have a floating QDockWidget, it behaves like a normal window (from user's perspective). What I want to archive is to add a QStatusBarto the floating QDockWidget. With the signal…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
1 answer

Adding an icon to a toolbar in Qt 5.3

I'm working on a project using Qt 5.3 and C++ 11. I've inherited a semi-large code base and have never worked with Qt before, so a lot of the coding I'm doing for this is by modifying some of the earlier code for my purposes. I'm currently tasked…
erip
  • 16,374
  • 11
  • 66
  • 121
1
vote
1 answer

QBuffer in a QRunnable may or may not generates error QObject::moveToThread: Current thread is not the object's thread

I have a derived class from a QRunnable object. It is doing small image processing tasks. It looks like follow: void ImageProcessor::run() { int bytesPerLine; if(_format == QImage::Format_RGB32) bytesPerLine = _width * 4; QImage…