setMainQmlFile it doesn't work
Hi guys…. I have this qrc file: <RCC> <qresource prefix="/"> ...
View ArticlesetMainQmlFile it doesn't work
Hi, Try viewer.setSource(QUrl("qrc:/qml/pilarApp/main.qml")); instead of viewer.setMainQmlFile(QStringLiteral("qrc:/qml/pilarApp/main.qml"));
View Articlehow to display the values that I get on column of the table widget
Hello and welcome to devnet, you have to basically call the name of the role in your delegate, otherwise it would also work if you call the data function of your model and pass the DisplayRole and...
View ArticleRunning QML application package
sorry for the late reply. It was my mistake, hence QQMLApplicationEngine is working fine. There was my own 3rd party dll missing in my system. I refer it properly in the QML application and it works...
View ArticleQML PathView: change current index of pathview via mouse wheel
I have created a path view with a delegate and model. Is it possible to change current index of the PathView via mouse wheel instead of mouse click drag? Following is my PathView code: PathView {...
View Article[SOLVED]QtQuick Combobox reset list index not working
Hi p3c0, yes i was using version Qt 5.2.0 now upgraded to Qt 5.2.1 and it works fine. Thank you for your help.
View ArticleWhy ListModel can contain only Loader instances but not Item
Let’s consider such example import QtQuick 2.2 Item { id: root property ListModel itemsModel: ListModel { } property...
View ArticleQOpenGLVertexArrayObject::create() fails inside a...
I have a class derived from QQuickFramebufferObject::Renderer which I use to render to a QQuickFramebufferObject. My application has a QML based UI but needs OpenGL rendering. I have got this currently...
View ArticleSome explanation on destruction
I want to dynamically create and destroy Item described in myComponent (actually, in real world, I want to do this with many items, and I need to manage them, that is why I use ListModel in the example...
View ArticleHow can I scale my WebView content size?
Here my code import QtQuick 2.0 import QtWebKit 3.0 WebView { id: webView preferredHeight: 100 ...
View ArticleDefining a different fontSize according to OS
I developed a QML application and it displays perfectly on Mac but same size font is much bigger when running application on Windows. Is there a way to define a different font size according to the OS...
View ArticleQOpenGLVertexArrayObject::create() fails inside a...
Ok, how do I request one ? By the time my QQuickFramebufferObject::Renderer gets created, a FBO is already created and bound.
View ArticleDefining a different fontSize according to OS
As usual, I just need to post a question to find the answer a few seconds later import QtQuick 2.0 ... console.log(Qt.platform.os) Bidochon
View ArticleCan't get QML to playback .mp4 videos
Hello – QML newbie here. I am attempting to to create a trivial app for playback of video files. The code I have works fine for .wmv files, but when I try to playback an .mp4 file, nothing plays....
View Articleadding scroll indicators to ListView
Something like this? import QtQuick 2.1 Row { Rectangle { id: prev width: 10...
View ArticleIntValidator accepts out-of-range 0 ?
Shouldn’t zero not get validated in this case? import QtQuick 2.1 import QtQuick.Controls 1.0 TextField { validator: IntValidator { ...
View ArticleIntValidator accepts out-of-range 0 ?
I see now, in c++ qt this would produce an intermediate result, in the case of leading-zeros
View ArticleHow to style Menu or MenuBar component
I can’t see any “style” property on those, neither I can see MenuStyle component. How do we style those ? What about StatusBar component ? I see a StatusBarStyle component :...
View Articleproperty variant lose type information?
I’m sorry guys. Can you answer the question: Are children can be updated in runtime? UPDATE: Yes, using component.createObject ad stuff like that. Because children can be updated in runtime I see this...
View Article[Solved]Loader, set Component as SourceComponent using JavaScript-Function
Hello, i would really like to set a Component as the sourceComponent of my Loader. Loader { id: compLoader x: 20; y: 20 width: 300;...
View Article