Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

Run QML App outside of Qt Creator

Hello I get an error if I try to run a QML (1 and 2) app outside the Qt Creator. I create a new QML app with the wizard and make a release build. Then I copy these files from...

View Article


ParticleSystem greatlty consumes CPU when window is covered by other window

I used ParticleSystem in my QtQuick2 program. Normally it has 2% CPU usage. It’s okay. But when I move another window to completely cover my QtQuick2 window (which used ParticleSystem), the process...

View Article


How to RUN MAPViewer example from qtlocation

Qt Location does not currently support 3D maps.

View Article

Convert QHash into a QVariant

Hello Guys: Another Conversion pain question I have QHash <long long int, QList<long long int> > object which I need to convert to a QVariant. But I am unable to do so....

View Article

QML Module not found - and designer shows no GUI

OK so i just add it to my path. I was wondering if there was a special terminal or something that ran in Qt’s background that held special variables for Qt. Thanks

View Article


Convert QHash into a QVariant

// Setting:   QVariant storage = QVariant::fromValue(yourHashObjectPointer);   // Getting: QHash <long long, QList<long long> > result =...

View Article

Run QML App outside of Qt Creator

Now the app starts without showing an error but if I start the app on an other computer it only shows an tiny window (only the border) without content. I’ve copied...

View Article

QML, QtQuick2 performance, How to get the best of OpenGL?

Here are video taken from the following example: QmlTestLag.zip [filehosting.org] My graphic cards are Nvidia Quadro NVS 450, Mosaic Is activated, though Widows See only one big screen in its setup:...

View Article


QML component assignation

As both myQml1, myQml2 are just readonly references to qml objects this will not work. If you really would want to change ALL the properties of object you could achieve this via    ...

View Article


QDeclarativeImageProvider::requestPixmap called twice when using Image with...

I am using QtQuick 1.1 and I have a QPixmap provider called by an Image element with cache property set to false:    Image {          ...

View Article

QML component assignation

thanks mutaphysis I’ll try your approach

View Article

Why does mapToItem return a QVariantMap instead of QPoint?

An inconvenience I stumbled upon – it is not possible to assign the result of mapToItem to a point property. That just doesn’t seem like a very good design intent. Instead of: p = mapToItem(null,...

View Article

QML2 application shows no content if it runs outside Qt Creator. QM1...

Hello, I created a new QML1 application and a new QML1 application with the wizard and made a release build with VC and mingw. Then I copied the needed files from to the release folder to get it...

View Article


Access dynamic created ListModel elements from C++!

Hi all, how I can access from within C++ the elements of a ListModel? I write a application with a ListView. The content is set by an ListModel which is set dynamically during runtime. This is...

View Article

Convert QHash into a QVariant

Thanks sierdzio for the valuable tip :) Regards The Illiterate

View Article


Is QQmlListProperty(QObject * object, QList & list) safe to use?

The docstring for this constructor [qt-project.org] claims: Generally this constructor should not be used in production code, as a writable QList violates QML’s memory management rules. However, this...

View Article

Why does mapToItem return a QVariantMap instead of QPoint?

How would you avoid exposing the components as subproperties – and why would you want to? Would the “pos” property just be completely “opaque” to JavaScript / QML code? If so, then it becomes useless...

View Article


Is QQmlListProperty(QObject * object, QList & list) safe to use?

Hi, This is actually a really interesting question, and one I didn’t know the answer to – I had to ask Andrew den Exter who explained it to me. Basically, it means that because (with this ctor) the...

View Article

Exposing js file in qmldir

Hi, I’m writing a qml plugin and I want to exposed in a qmldir some javascript file. I haven’t found how to do it. I’m not event sure it’s possible. So how do you suggest I could do it otherwise ?...

View Article

confused about keypress event

Hi, Im using pyside, and I am loading a ui file from designer with QUiLoader. class MyWidget(QtGui.QMainWindow):  def __init__(self, *args):   apply(QtGui.QMainWindow.__init__,...

View Article
Browsing all 4972 articles
Browse latest View live