QObject * as function parameter
Hi I need to pass QObjects like QString, QVariant or custom objects as parameters of functions: QString *str = new QString("Hello"); myClass.function(str); void Class::function(const...
View ArticleBuild qt3D with qt4 under Ubuntu 12.10
Hi, all: I strictly follow http://doc-snapshot.qt-project.org/qt3d-1.0/qt3d-building.html, but failed to build qt3D successfully. Weird compilation errors keep bugging me all the time. at the very...
View ArticleHow to add qch silently
I have generated a custom qch file and can add it manually but was wondering if there was a way to add it without going to Tools>Options>Add…? Is there a ways to either copy it into a...
View ArticleText checker (based on criteria)
I just want some opinions on what is the best way to implements this. As I’m a newbie to Qt I don’t know all that Qt can offer. I searched the web to no avail. Example of usage: I paste text into the...
View ArticleQt doesnt start after updating
hi i have ubuntu 12.04 in my computer and i had installed qt4 and qtcreator 2.4.1 from ubuntu software center. but today i upgrade it to qt5 and qtcreator 2.7.0-beta in software center but the...
View ArticleSimulate Touch Events on BB10
I posted this on stack overflow, but re-posting here as didn’t receive any answers: I am attempting to simulate touch events on BB10 app. My main goal is to create a touch event, for example, for pixel...
View ArticleStatically Compile Ressource File
First, English isn’t my first language…. I learned all i know about programmation on youtube so, if you have any ! any ! constructive comment, please write it, i will be very happy! My problem is that...
View ArticleQPainterPath will not add a null element
AFAIK it is undocumented that appending a null element, for example a lineTo(the current end point of the path), doesn’t actually add anything to a QPainterPath. path = QPainterPath(QPointF(0,0))...
View ArticleParse HTML using QRegExp
Hi there. I am trying to get a list of values out from an HTML file and had no luck so far with QXmlStreamReader as the documentation suggests. The entries I am interested in look like this: <a...
View ArticleHow To Remove unused dependencies ?...
Hello there, I compiled QT 4.8.4 statically with built in MySQL Driver and my application is using a MySQL Connection. Everything works just fine, the static file has about 46 MB. But if i run ldd on...
View ArticleBuilding QT5 with OpenGL global namespace errors
I’m trying to build the latest QT5 with OpenGL support from source. I’ve followed the instructions here: http://qt-project.org/wiki/Building_Qt_5_from_Git I’ve configured with configure -c++11...
View Articlerun a command in a tcpSocket and return servers answer
hi i have a tcp Server server and my clients connect to this server , when my clients send a command to my server , it need to check that command from another server and answer to that client … i need...
View ArticlemousePressEvent doesn't get called when left mouse button clicked
However it does get called when right or middle mouse button is clicked. Does any one know what’s wrong? void MyWindow::mousePressEvent(QMouseEvent *event) { ...
View ArticleCompiling Qt5 for linux-arm-gnueabi-g++, configure fails to OpenGL ES test
Hi, I’m trying to compile Qt5 for linux-arm-gnueabi-g++, because I’m building crosscompile env for arm. I’m using Ubuntu 12.10 as development platform. When I run ./configure like this: ./configure...
View Article[Solved]How can I get filesize of file at remote server?
I have project in which I need to get file name and size of file at some remote server. I have URL for example http://www.example.com/picture.png. It’s easy to get file name, I just pick last part of...
View Articlethis application has requested the runtime to terminate it in an unusual way
Hi, I use Qt 5 in Qt Creator IDE. When I compile and I try my program in Qt Creator, it works well. But when I try my program in Windows Explorer, I have an error message “Microsoft Visual C++ – this...
View Articlestrange behaviour of scrollbar with QListWidget
Hi All, I have a simple Application that has an image as background applied is stylesheet of centerral widget. I simple place the QListWidget on the the form, and run it, when the scroll comes it is of...
View ArticleThe program has unexpectedly finished
Starting C:\Qt\Qt5.0.1\5.0.1\mingw47_32\examples\opengl\2dpainting-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\2dpainting.exe… The program has unexpectedly finished....
View ArticleMultiple text lines in QListView
Hi All, I want to display multiple lines of text in a QListview. I have tried for that with custom delegate, but it doesn’t working. My code is here… .h file is… #ifndef WARP_H #define WARP_H...
View ArticleCrash when building XML QDomElement in a method (probably just my bad C++)
Using MSVC 2010, Win 7 (64), Qt 4.8.4. I’m pretty sure I just got some parameter types wrong, but I just fail to see which… ? I’d also be grateful for hints to better solutions of this problem...
View Article