I have used Loader to embed in the main qml file the new files, as pages but I don't like so mutch this approach. With Declarative I can change the screen as I want.
Hi,
i found it. If my component use f(x) and this component is in a file Draw.qml
Simply do it
@
Draw {
function f(x) {
return Math.cos(x)
}
}
@
Have a nice day
Hi and welcome to devnet,
Since you want to interface Akonadi, you should rather ask this on the KDE forums. You'll probably have better chances to get a quick answer about that. Looking at the KDE sdk might also give you some hints.
Someone can help me?
Selection doesn't work for the TextInput and TextAreaInput even when it's not read only. this is a bug ?! how can I solve this problem ?
Hi,
Please take the time searching the forum. This question comes almost every week.
Have a look a this well written "wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows for windows deployment.
You also have the "Windows Deployment Guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
I solved using QApplication in the main.cpp. I used the header from the Gallery example.
@
#ifndef QTQUICKCONTROLSAPPLICATION_H
#define QTQUICKCONTROLSAPPLICATION_H
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/QApplication>
#else
#include <QtGui/QGuiApplication>
#endif
QT_BEGIN_NAMESPACE
#ifdef QT_WIDGETS_LIB
#define QtQuickControlsApplication QApplication
#else
#define QtQuickControlsApplication QGuiApplication
#endif
QT_END_NAMESPACE
#endif // QTQUICKCONTROLSAPPLICATION_H
@
and in the main.cpp
@
QtQuickControlsApplication app(argc, argv);
@
I also added this line in the .pro file
@
!android: !ios: !blackberry: qtHaveModule(widgets): QT += widgets
@
But they are not actually needed :)
Thanks for the help guys!!
Tnx a lot 4 answer!
ok, but my app will be run at mac os, etc, where Android API will not be available, and what next?
About C++ version, i think i can't use is
so maybe some one know other libs or some service or something other solutions?
went image provider route, seems the best/only real way. ( i also needed some resizing code for when the source is larger than the element, to downsize it
[quote author="MrBolton" date="1400665764"]But I'm still wondering: Does the QQuickWidget not support QtQuick 1 at all?[/quote]
Correct. It does not need to (plus, QtQuick 1 is deprecated in Qt 5).