Put data from .txt file in QPainter
I am very new at Qt and am trying to make drawings with coordinates from different .txt files. The code below is what i could derive from the Qt documentation, however i think it only loads a file, i...
View ArticleGet rid of includes
If there is one thing I really get annoyed over in C/C++ it’s the includes. Why on earth would we have to handle all that crap manually? My solution to this problem when doing embedded programming with...
View ArticleQt SDK 5.1.1-mingw48 Install & Tools Bug
i installed this files. qt-creator-windows-opensource-2.8.1.exe qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe 1. MINGW Qt Creator 2.8.1 Setup Install Error.PNG – Install bug 2. Qt Creator...
View ArticleQtSvg not built
I’m trying to build a moderately lightweight Qt library from source, and the following set of configuration options almost works for me: configure -opensource -debug-and-release -c++11...
View ArticleCant build Firebird driver
Hello, i have problem with firebird driver. I use Qt 5.1.1 and firebird2.5-superclassic, Ubuntu 13.10. Error code: g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x...
View ArticleHow to compile a QMySQL with mysql-install-community-5.6.14.0.
Hi I am casison_7 a little debutant on QtCreator! I used version 5.1.0 I would like to write an application for my final study using a database mysql-install-community-5.6.14.0. I suddenly I realize...
View ArticleQt 5.x and QML/OpenGL
Howdy I’ve written a Qt 4.8 application that makes heavy use of QGLViews and QDeclarativeViews, all living happily in WidgetLand (i.e. in dock windows, laid out in splitters, stacked in QToolBoxen etc)...
View Articlemany nested QFrame widgets render somewhat slow
I’m writing some code which will display a threaded conversation. There are many nested QFrames, each reply is a child of the previous post’s QFrame. This is as a mockup of what I am doing...
View ArticleAssertion failed
Hi. I have a very simple Sql query query.clear(); query.prepare("select FIO from inspectors where FIO=:FIO"); query.bindValue(":FIO",text.trimmed()); query.exec();...
View Articleqextserialport not reading data fully
Hi frnds i am new to qt and trying to read data from serial port in qt on rhel linux . The incomming data is 15 byte data and sent at every 1s from the sender device. When i am reading this data i get...
View ArticleCreator: Handling 1 header : n source files
As soon as I split the implementation in such a way that the declarations within one header file are defined in multiple different cpp files, Creator gets a bit confused. Something like this:...
View ArticleRunning .exe file using QProcess creates hundreds of the same processes
I have a problem running phantomjs.exe binary in my QProcess class. Consider this code: QString program = "phantomjs.exe"; QProcess *process = new QProcess(this);...
View ArticleMSVC 2012 cannot autodetect include paths
Hi, I mostly use clang (occasionally also gcc) both on OS X and Linux, and also tried mingw on Windows. I wanted to try msvc on Windows because I find mingw slow, but it seems that with msvc I must be...
View ArticleWhere I should write flush() function?
Hi, Where I should write flush() function? Here: out.flush(); or here: mFile.flush(); #include <QCoreApplication> #include <QFile> #include <QDebug> #include...
View Articlearray bound is not an integer constant before ']' token
Hi everyone, I’ve been running into a little problem now, and I don’t know how to get out of it. I’m quite a beginner with QT and c++, and I’ve searched many forums but still haven’t found what I’m...
View ArticleQSerialPort open
#include <QtSerialPort/QSerialPort> #include <QApplication> #include <QtCore/QTime> #include <QtCore/QTextStream> ...
View Articleis QML Guaranteed to be Processed serially?
I have this script: import QtQuick 1.0 import FileIO 1.0 import RectData 1.0 Rectangle { id: main width: 360 height: 360...
View ArticleAveraging Window
Hi As part of my app I need to maintain a set of values and calculate the average as new values are added The set of values is a fixed size and when a new value is added the oldest must be remove. Can...
View ArticlepropagateComposedEvents to ComboBox not work
I know that documentation mentions propagateComposedEvents events works for MouseArea. But What If I want it to work for combo box or another Qt Quick Component? Is there any work around? Following...
View Article