QSortFilterProxyModel - How to add an extra column.
Hello All, I’m trying to create a QSortFilterProxyModel subclass which has as its source a QSqlTableModel and provides two extra cols to supply extra data to view that is not in the source model. Where...
View ArticleProgram doesn't generate QML
Hi Guys, I created a new Qt project but it doesn’t generate a QML file on it’s own. So, I clicked on File->New File->and created a new QML file for my project but if I make changes to...
View ArticleWhat is Z-order ?
I’m trying to understand how to read Qt documentation. I’m reading the QWidget section and i don’t understand the part when they say : Z-order …? Here is the extract : Every widget is rectangular, and...
View ArticleQt for beginners tutorial problem
Hi, I’m currently trying out the tutorial, but I can’t seem to compile this piece of code and I have no idea why. The error I’m getting is: “expected ‘,’ before ‘button2’”, can someone help me out?...
View ArticleCloned QTextDocument function failure
While adding headers and footers to my printouts I ran across the following rather courious problem. When I cloned the clone of a QTextDocument several of the QTextDocument functions failed. The...
View ArticleWhere is glGenBuffers?
Studying the examples from this site developer guides [qt-project.org] From the source codes of hello-opengl, the paintGL function call “setAttributeArray” to set the data of the vertices, the weird...
View ArticlePossible bug: qmime.h warning "char type is unused"
Hey folks, this warning pops up all the time, and I don’t think it’s my fault. I wrote an empty program just to make sure the warning still popped up, and it did. Here’s my empty program, check it for...
View ArticleQT5 QApplication Crashes When There is No Monitor
I am running a Qt Desktop Application on CentOS 6.4 with Qt 5 Libraries. When I start the application from VNC/Teamviewer, as some of our servers do not have monitors, the application crashes. Starting...
View Articleerror: array initializer must be an initializer list or string literal
when I try to do this: char string1[] = str; //str is a QString I get this error error: array initializer must be an initializer list or string literal What can I do to fix this?
View ArticleRemove element from Row when changing states
Hello everyone, my first post here. I am learning some Qt Quick and got stuck with something, I hope some of you may help me: Is it possible take an element out, from within a Row element when changing...
View ArticleHow to display items in a centered Flow-like way?
Hi, I was wondering if there was a way to display child items in the way the Flow item does (side by side as long as there is enough room and then on the following row/column depending on the...
View ArticleI am getting error as "module Qtwebkit is not installed.
Hi All, I have to use webview in qt for blackberry, when i use it I am gettting error as “module qtwebkit is not installed” for bb10 platform. How can I add the qtwebkit module for bb10.
View ArticleQtMultimediaKit in Windows XP
Hi, recently I downloaded Qt 5.1 beta binary for Windows and I wanted to try QtMultimedia in QML. Unfortunately it seems that this module is missing in the installation just like in 4.x versions. What...
View ArticleQGraphicsItemAnimation setRotateAt rotates around scene 0,0 how do i set it...
For several reasons (the biggest of which is the legacy codebase I am working with) I am forced to use QGraphicsItemAnimation to animate QGraphicsItems on our scene I am trying to implement a simple...
View ArticleQTransform.rotate() from the middle point?
Hello. I want my QTransform rotating from the middle point of my QLine (so, if my QLine is 50 pixels long, it should rotate from X 25 for example)! At the moment it rotates from the left point, so from...
View ArticleC++11 QString pass by reference?
Hi all, I am starting a Qt5 project where I want to use C++11 exclusively. Which is faster for QStrings now, pass by value or pass by reference? Cheers, Martin
View ArticleImpossible to call paintEvent()???
I have created a Frame in QT Designer and promoted it to my custom widget, and so far everything I’ve done with it is completely fine except attempting to call paintEvent(); I have overidden a bunch of...
View ArticleValid property value for designer plugin
Hello, I wrote and compiled a plugin for designer but when I try to use it it simply won’t do anything when I drag it into the grid. I think is because of one of my properties, I declare it in the...
View ArticleDelete a row from gridLayout
Hi, Does anyone know how to delete a row from gridlayout. The row int the gridlayout contains widgets. Deepak
View ArticleHow to access v8's debug API in QJSEngine
Hi, I was playing around with the new QJSEngine and wanted to access the v8’s Debug interface (eider start the building debug agent, or pass debug commands directly to the engine using the C API),...
View Article