QTextEdit as html templating engine
Hello. First – sorry for my English, hope you will understand me :) I need to implement a simple templating engine based on QTextEdit. It must work like this: Step 1) Load template into QTextEdit Step...
View ArticleSql Tree Model/View
Hello all, I have a SQL table (SQLite) with the following structure: CREATE TABLE filters (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(30), key VARCHAR(30), parent INTEGER, FOREIGN KEY(parent)...
View ArticleNested List support in QTextEdit
Hi, I’m trying to create the nested list using QTextEdit. I tried with the below code snippet, but I’m getting the same number for all the blocks. QTextListFormat listFormat; ...
View ArticleVSExpress 2012 and Qt
I have just installed Qt and tried it with a simple hello console-app, but I get this error: 06:41:50: Running steps for project qtTest… 06:41:50: Configuration unchanged, skipping qmake step....
View ArticleCannot link to my own libraries in Qt 5.2.0 OSX w/clang++
I’ve been updating some of my code run under Qt5 on OSX and have come across an issue whereby I seem unable to link to libraries that I have created. One of my build scripts works in three stages,...
View ArticleChange implementation according to different platform
ex : Rectangle{ android{ width: 320 height: 240 } win32{ width: 640 height: 480 } } I remember I saw something like this before, but can’t find it now(what keyword?).
View ArticleWhat is the associate type of QList in qml?
class whatever: public QObject { Q_OBJECT public: explicit generalUnitConverter(QObject *parent = nullptr); ...
View ArticleScrollView And ListModel Problem
Hello guys I want to show ListElements on ScrollView. When I run the program, program is crushed. What is the problem? import QtQuick 2.1 import QtQuick.Controls 1.1 ApplicationWindow {...
View ArticleQt::DirectConnection querries for multi threaded application?
Hi, I have some querries regarding how SIGNAL SLOT behave in multi threaded use case. Consider the following connection: connect(parentObj, SIGNAL(sig1()), workerObj, SLOT(slot1()),...
View ArticleCould not find qml file after deployment on iOS Simulator
Hi, With Qt 5.2 and iphonesimulator, whether i create a project with only QtQuick 2.0 i have no problem, but if i use QtQuick.Controls 1.0 i have file:///Users/MyUser/Library/Application Support/iPhone...
View Article:-1: error: [install_itemfolder_01] Error 1 when running the minimal Qt Quick...
Hi, I am trying to set up an development environment for Qt development for android and I have followed the steps described here [qt-project.org] and set the appropriate directories for android sdk...
View Articleinitialize error of ComboBox : Cannot read property 'constructor' of undefined
When I try to initialize the model of ComboBox, weird error pop out import QtQuick 2.2 import QtQuick.Controls 1.1 Rectangle { width: 100 height:...
View ArticleQt5.2 for QNX Neutrino": screen/screen.h: No such file or directory
Hi All, I want to compile Qt5.2 source code for QNX Nutrino target on windows host, i have installed all required pre-requisits like ActivePerl, Python, Ruby, DirectX SDK, MingW and QNX SDP 650SP1. I...
View ArticleQSqlDatabase: QMYSQL driver not loaded with QMYSQL driver available in OSX...
Hi all, I am having an issue with QMYSQL when open a project created in Qt4.7 in Qt5.2. In particular when connecting to the database, i get the following error: QSqlDatabase: QMYSQL driver not loaded...
View ArticleSamsung Note 10.1 SPEN BUG?
Hi, im using a Samsung Note 10.1 tablet. There is an inductve Pen called SPEN. Now im trying to display my mouse coordinates. When im using my finger i get the position on dragging, but when im using...
View ArticleHow to capture an QML child element to an png?
Hi, I see this method: [stackoverflow.com] but it doesn’t work. I substitue QDeclarativeItem by QQuickItem: void Capturer::save(QQuickItem *item) { QPixmap...
View Articlesignals and slots without a signal
Hi, I have so far only created a neat looking GUI, tabbed windows, slider,dial and plot in one window and textlog in the other. I click on a start button to start simulations; The simulation runs every...
View Article(iOS) static plugin for module “QtQuick” with name “QtQuick2Plugin” cannot be...
I have a Qt/QML application that works perfectly on Android and Desktop and now I’m trying to port it to iOS. When I execute it I get this error: static plugin for module “QtQuick” with name...
View ArticleQT 5.2.0: Q_DECLARE_METATYPE requires value_type and other sequential class...
I have a code that compiles and runs fine under QT 5.1.1. After upgrading to QT 5.2.0, I got errors: c:\qt\qt5.2.0\5.2.0\msvc2012_64\include\qtcore\qmetatype.h(1372) : error C2039: 'value_type' : is...
View Article"Qt code to display world map along with lat,long and height"
Hai, I am at beginning stage of learning Qt so please guide me to complete above task .
View Article