Reference error: Can't find variable...
Hey there! Currently trying to follow one of the game guides on qt-project http://qt-project.org/doc/qt-4.8/declarative-tutorials-samegame-samegame1.html. However when I run the main qml file named...
View ArticleHelp making my Qt program cross-platform.
Ok so using Qt on Linux Ubuntu 12.04. I designed a GUI application that just encrypts a message. I want to make it so It works on Windows. So that leaves me with two questions. 1. How do I know the...
View ArticleError C2352: illegal call of non-static member function
Hi I am trying to modify some code that someone else wrote. Added two new UI screens. One is working perfectly. The other is working, but I need to pass data from a com port to it from another module....
View ArticleSaving Json
I have a program that uses a ton of fields for a user to input information and i want to save it as Json and help on what i should use that will make the saved file appear in the correct Json format too.
View ArticlePySide QImage constructor from buffer doesn't copy memory
Hello all When I create a QImage from a buffer and then delete the buffer (or the buffer goes out of scope), the QImage object refers to an unreserved piece of memory. This leads to unexpected behavior...
View ArticlePhonon: multiple instances of AudioOutput, setVolume(qreal) doesn't work...
I have a program where I have multiple different instances of AudioOutput class, but setVolume(qreal) method works properly only with the last instance. With other instances it does nothing. Why? What...
View ArticleSpeeding up Rendering of Repeater Item containing ShaderEffects
I’m new to Qt/QML. At the moment I have written a QML component with a bunch of visual components utilising animations, however when the animations aren’t active I’d like to render everything in the...
View ArticleРасширение для QtCreator
Есть такая статья http://habrahabr.ru/post/135289/ Возникают вопросы по написанию плагина к QtCreator, как в коде плагина получить следующее: Путь к папке Qt- библиотек. Путь к исполняемому файлу (exe)...
View ArticleUsing setUnifiedTitleAndToolBarOnMac in a QMainWindow (Qt 4.8.4) with a...
Hi, While migrating our app from 4.7 to 4.8 we have found an error (reported here: https://bugreports.qt-project.org/browse/QTBUG-30502). It seems quite critical but I have not found any other...
View Articlei have a question about declare global cv::Mat image in Qt project.
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QTimer> #include <stdio.h> #include <iostream> #include...
View ArticleVisibility of disabled tabs
- If I disable one page of a QToolBox object, All son-objects are disabled, but I can still select that page and view its content. Fine! – If I disable one page of a QTabWidget, It seems that I can no...
View ArticleShow image from web cam in qt desiner
I guys! I need to show a video camera image from a webcam in qt desiner. I’m new in qt, so I thought to use a mdiArea but I don’t know if it’s correct and how show the video. Can anyone help me? Thanks.
View ArticleGet QPlainTextEdit's structure
I have a QPlainTextEdit. It has a text, which contains parts with different fonts. I want to go through the text and know the fonts. I digged in QPlainTextEdit’ document and found I can go through...
View ArticleHow does QTreeWidget parse SQL tables?
Hi, I’m debugging some legacy code (PyQt 4.4.4 and Python 2.7, ugh) and I need a QTreeWidget to access an existing mySQL database and display the rows of a certain table as topLevelItems with the...
View ArticleQDataWidgetMapper and custom widget - read value
I’ve made a my widget which has a Q_PROPERTY like this: Q_PROPERTY(QDate date READ date WRITE setDate NOTIFY dateChanged USER true ) I created a QDataWidgetMapper and addMapping. The date from my...
View Article"unused parameter 'parent'" and undefined symbols
Hey, I’ve been trying to write my own Qt program from scratch, and but I’ve been getting this error: usr/bin/clang++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.8 -Wall -W...
View ArticleHow to build QtBase 5.0.2 on Windows XP SP3 using msvc2005
I didn’t find enough information on the web, so I figured it out myself how to successfully build the DLLs of QtBase 5.0.2 on Windows XP SP3 using msvc2005. Here’s the summary on how I finally...
View ArticleCopy Protection and Licensing.
Ok, So I have a program made with Qt. The only installation it requires is to make sure Qt is installed(I’m on Ubuntu and Qt is in the dependencies). So that leaves me with two questions: 1. What...
View ArticleMouseArea: making it stop capturing mouse events
I have set an uniform grid of multiple MouseArea’s, all of them with hover enabled. When you right-click on one MouseArea and keep it pressing it, that MouseArea captures all mouse events, even when...
View ArticleStrange error when extending QObject
I have strange error. If I extend my class with QObject (with setting Q_OBJECT macro), then I try to create that class in main function, I get this error at runtime/startup: The program has...
View Article