how to use eventFilter()?
in A widget,i use virtual void mousePressEvent(QMouseEvent *); virtual void mouseReleaseEvent(QMouseEvent *); virtual void mouseDoubleClickEvent(QMouseEvent *); but i find i can’t distinguish clike and...
View ArticleRedraw function by using canvas
I am trying to make a graph in qml by using canvas(the same one which is used in html5). I need to redraw the screen every second or so.Is there any function which could update the screen? I want to...
View ArticleHow to make TableView Items draggable
I’ve a TableView and have implemented my own item delegate for it. I want to be able to drag it out and place it somewhere else. How do I do it itemDelegate: Text { ...
View ArticleUsing C++ with QML
Hello there and thanks for taking the time to look at this post. :) I want to use some c++ code that I have hacked away at in QML bonjourbrowser.h #ifndef BONJOURBACKEND_h #define BONJOURBACKEND_h...
View ArticleQtDBus complex types in Variant
Anybody have an idea how to use complex types (struct, dicts, arrays) in variants? E.g. DBus method: <method name="RequestResultList"> . ...
View ArticleQt5.1.0-rc2 building for Centos 6.4
Hi, I’m having all sorts of trouble building from source using these instructions: http://qt-project.org/wiki/Building_Qt_5_from_Git I have had problems ranging from making gcc crash (yes crash!) to...
View ArticleMemory management issues when using a huge amount of data with Qt container...
I’ve already posted QTBUG-31215 [bugreports.qt-project.org] last month but unfortunately the bug is still “Unassigend” and switched to status “Can be fixed, but doesn’t affect the release in any way”....
View ArticleErrors after include
Hello Everybody, I’m completly blocked at the moment :-( Each time I try to include my header file “communicator.h” to the header “property.h” I get the strange error below. It seams to have no...
View ArticleHow to get locale of current OS in Qt?
Hi all, Please tell me a way get locale of current OS? I use Qt 4.8.4 Thanks.
View ArticleQT_LARGEFILE_SUPPORT macro redifinition issue with Qt4.8.5
I’m using the Qt libraries 4.8.5 for Windows (VS 2010, 235 MB) package. When I switch from Qt4.8.4 to Qt4.8.5 I get a lot of warnings of type QT_LARGEFILE_SUPPORT macro redifinition, more precisely one...
View ArticleHow to initialize a bunch of similar comboBoxes at once in a loop?
Hi, I am wondering if there is a simple way to initialize combo boxes which are all of the same content at once in a loop using:...
View Articleerror 0xc000007b
when I try to run a Compiled program i get the error msg. http://s14.directupload.net/file/d/3305/uhasiwtt_jpg.htm Win7 Ultimate 64bit Qt Settings:...
View Articlesetting the cursor color
Hi, I am using the following code to format my QTextEdit , but i am not able to change color of the cursor to white. please let me know how to change the color of the cursor to white. ...
View ArticleQMessageBox after qApp->exec();
Hellop, i have segmantation fault error. Can i do in Qt something like this: main.cpp int main(int argc, char** argv) { QApplication app(argc, argv); ...
View ArticleQMAKE_BUNDLE_DATA doesn't remove old folders
Hi. There’s such piece in my .pro which copies ‘translations’ and ‘data’ folders: macx { appresources.files += resources/translations appresources.files +=...
View ArticleItems in the Grid component that are not Rectangle
Hi, Noticed something this morning, I feel that I might be overlooking something but I believe its worth asking. I am trying to place custom components in a Grid, but it seems like the components...
View ArticleHow to parse html in qt
As the title said, in QT GUI application. should i use regex? if yes how i can use this in qt regex?...
View Article[SOLVED]qt creator 2.7 crash
Hello guys after i added a big html source in plantextedit qt creator crash when i load the project and its leave the following error: Segmentation fault *solution: * I have downloaded the latest...
View ArticleHow to use Versit from QML ?
Hi, I woud like to load some vCards from server using QML convert them with Versit and add the result via QML to the Contacts. Is this possible ? What would be the right way doing it ? Ciao Matthias
View Articledebug, configuration problem, cl not found
hello I’m new for Qt,I installed qt for msvc2010, i have VS 2010 installed, when I load a example and try to run or debug have error in compiled output with cl not found.
View Article