Quantcast
Browsing all 4972 articles
Browse latest View live

[SOLVED] (Qt 5) Qt Quick 2 application - will not link when c++ class...

One more quick question. CGuideMenu is derived from QObject and has Q_OBJECT in header but I still get the following error main.obj:-1: error: LNK2001: unresolved external symbol “public: virtual...

View Article


QDeclarativeItem based on QML (Load QML file from QDeclarativeItem)

I’m create a QtQuick application. I try to download Qt 5.0 and install this, but when a add a QML file to resource file, resource file not compile (resource.cpp don’t does not appear in debug folder)....

View Article


QDeclarativeItem based on QML (Load QML file from QDeclarativeItem)

If I do this: main.qml import QtQuick 1.1 import ManagementButtonLib 1.0   Rectangle {     width: 800     height: 600      ...

View Article

Difference in opacity change between rectangle color and image?

This is something that I have notice for a while and worked around, but I thought I should try to understand the issue better — perhaps someone here can help? I have an image that is red on a rectangle...

View Article

Component as parameter of a signal or function

How can I pass my own Component as a parameter in a signal or a function? or how can I define my own type that can be recognized by QtQuick? This is MyItem.qml: import QtQuick 1.0   Item{...

View Article


Component as parameter of a signal or function

Very good, that’s the solution of my problem, Thanks

View Article

Creating Mock objects in Qt

I’m new to Qt and trying to use Test Driven Development for Qt project. Is it possible to create mock objects for abstract classes? Let’s say I have an interface class to connect to database and...

View Article

[Solved] How to reload QML file with ApplicationWindow object?

Hi everybody! I’ve found solution of my problem. But I not sure what this is a best way to solving the problem. If somebody found a simple way please tell me. Thanks. The solution: I’ve created the JS...

View Article


Qt5 Qt Quick 2 - adding a member variable to a c++ class causes app to crash

I have VS 2010 and Qt5 installed on a Windows 7 VM. Question 1: If CMenu contains a variable the application crashes – remove the variable and the app runs. CMenu.h #ifndef MENU_H #define MENU_H...

View Article


: QML VisualDataModel: Error creating delegate

Some problem with listview navigation. Qt 5.0.0 ListView {    id: translationsList;    width: item.width;    height: 260;  ...

View Article

sending INT from dialog back to main.cpp

I have a main.cpp setup, and added a dialog, in my dialog I have CardSelect QDialog; QDialog.setModal(true); if(QDialog.exec())         {    ...

View Article

Qt5 Qt Quick 2 - adding a member variable to a c++ class causes app to crash

Well, congrats on that. :) It’s still a total mystery to me, but at least something works.

View Article

[Resolved]How can I use the localFile within a qml file has embed in Resource...

For some reason,I have to use a qml file with Resource Collection Files (.qrc),but now,i need to use XmlListModel in the qml to read a xml file at local file system ,while there is nothing i can get....

View Article


[Resolved]How can I use the localFile within a qml file has embed in Resource...

ok,now i fond that it can use absolute localfile URL get it。

View Article

import a plugin inside a javascript file

Hi, I’ve made a plugin wich I want to use in a javascript file. So I want to do something like this: test.js: .pragma library import MyPlugin 1.0 // <- No way in js file?   function...

View Article


setContextProperty and Inheritance

Hi, I have an UiHandlerClass which has a lot of Function which are the same except from the name string in setContextProperty. As the class got to big anyway i decided to split the class in 2 classes...

View Article

ScrollBar

I am not able to get a Scroll bar. I declared the QAbstractScrollBarPolicy in main.cpp and worked the commands given below QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);...

View Article


[Solved] setContextProperty and Inheritance

Ah nice, I had the idea of doing it with variables but I somehow thought these Strings need to be fixed at compile-time, thus i didn’t even try it. This is actually very cool thank you.

View Article

Passing list of Structure to QML

You should look links I gave more closely. Second one gives link to this blog article: http://cdumez.blogspot.com/2010/11/how-to-use-c-list-model-in-qml.html

View Article

Looking for good HowTo's or Tuts to get in

Hey, iam new in QtQuick and iam looking for Tuts or HowTos for QtQuick 2. I find a lot of stuff for QtQuick 1. Have you any tipps? How big is the difference between Quick 1 and Quick 2. I have some...

View Article
Browsing all 4972 articles
Browse latest View live