Drawing in QLabel
Hello, I am having some difficulties with a program I am writing. I am writing a very simple program, what I want is to draw inside a QLabel a rectangle and paint it. #include...
View Articlecannot full screen JW Player here when loading with QwebView
when load this page with a browser http://sharev.org/video/finddataurl.action?url=http://www.56.com/w39/play_album-aid-11672378_vid-Njk3MzAyODU.html you can play video in full screen mode ,but when I...
View Articlehow to disable font kerning in TextEdit
Here is the condition, The user will use textEdit to input some text, when complete, I will use a row of Text component to replace the TextEdit to run animation on every letter. import QtQuick 2.0...
View ArticleQimage and multi-threading
Hi, I’m developing a framework where I need to work with high quality images of the camera connected to it. I can get image sequences from the camera with CV::Mat. In order to display this images, I...
View ArticleReference 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