import a plugin inside a javascript file
Hi, Please see http://doc-snapshot.qt-project.org/5.0/qtqml/qtqml-javascript-imports.html#imports-within-javascript-resources for the relevant documentation. Note that imports from within JavaScript...
View ArticleLooking for good HowTo's or Tuts to get in
The documentation is a good source for reference, but seeing QML in actual production scenario, albeit a simple one, is much more beneficial. Here are two QML tutorials implementing since, yet complete...
View ArticleAbout using QDateTime::fromString
I wanna translate time string from sqlite to QDateTime , but It seamed failed , here’s the code : QDateTime curDate = QDateTime::currentDateTime(); QDateTime date =...
View ArticleDo you think that Quick2 has a slower perfomance than Quick1.1 when starting...
With my computer ,when start a Quick1.1 application(Official example),QDeclarativeView’s Window and qml contents are almost simultaneously displayed,while when start a Quick2.0 application(the same...
View ArticleAbout using QDateTime::fromString
strDate = date.toString("yyyy-MM-dd"); //empty strTime = date.toString("hh:mm:ss");//empty and strDate =...
View ArticleHow to use "Qt Desktop Components" on Qt5
You are using Windows, right? There is no “make” on Windows, you need to use nmake/ jom (if your compiler is MSVC) or mingw-make if you are using MinGW. I’m not sure Desktop Components are ready for...
View ArticleDo you think that Quick2 has a slower perfomance than Quick1.1 when starting...
Here is a guide [qt-project.org] for you, then. If you are not using QtWebKit, I strongly suggest deleting/ renaming it’s folder to avoid it’s compilation (you can also disable it in init_repository if...
View ArticleBeginner Question: Connecting to QML Signals
Hey, i try to connect cpp with QML and had a build Error that i can’t resolve. I copyed the code based on website (doc-snapshot.qt-project.org/5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html)...
View ArticleBeginner Question: Connecting to QML Signals
This is because view.rootObject() return QQuickItem * insted of QObject *. Unless you using sierdzio’s suggestion.
View ArticleStylesheets and QML - widget application being changed to QML, what is the...
I am updating a widget application to have a QML front end. From the discussions I have looked at it seems it is not practice to use stylesheets with QML? Am I getting that right (some of the...
View ArticleStylesheets and QML - widget application being changed to QML, what is the...
In the near future, when QtDesktop components come out for QML you will be able to use your stylesheets. As for now, I don’t think it’s really possible too. Not 100% sure on this though.
View ArticleQT5 QGraphicalEffects 1.0 OpacityMask systematic Error at runtime
Running this QML file: import QtQuick 2.0 import QtGraphicalEffects 1.0 import "." Item { id: idRoot width: 800 ...
View Articleimport a plugin inside a javascript file
You are my man, thank you! That works perfectly! Here my solution: .import MyPlugin 1.0 as My My.ClassName.TestFunction();
View Article[Qt5] How to make a QQuickView TranslucentBackground?
You might find the beginning of a solution in this topic: http://qt-project.org/forums/viewthread/18984/ In windows XP, the issues might be related to: -windows XP window manager itself (as in Windows...
View ArticleQt5: Does QScreen::virtualSiblings() guarantee the order of screens (needed...
Hello, According to Qt5.0.0 documentation, screen returned by QWindow::screen() “does not change when the window is moved around virtual screen”. That means, if QWindow is created on Display1 and then...
View ArticleQML Videos
-Hey guys, I’m working on a project where I need to integrate videos in to a Qt Quick project. I have no C++ files/plugins to it at this time and preferably I would like to do it without that if I can....
View Articlesending INT from dialog back to main.cpp
I think you could use signals and slots. http://qt-project.org/doc/qt-4.8/signalsandslots.html Hope it helps you. Regards.
View ArticleQML Videos
Hey, thanks a lot for the reply! The links were pretty handy. As I said in my first post, I’ve been trying to get QtMultimediaKit going, but I can’t seem to be able to get hold of the module that I’m...
View Article