Dynamic Created Component
Hello all! I am dynamically creating a page uisng createComponent. I like to set a variable/index in the newly created component. I tried to implement it using javascipt. But the value is not getting...
View ArticleAdding a tab in Widget from a class
Hi and welcome to devnet, After adding the tab you should use either setCurrentIndex of setCurrentWidget to switch to your new tab. As dmcr noted, please chose the sub forum more carefully
View ArticleNot Able to align the rectangles
Hi All, I have one problem in vertically aligning the rectangles. import QtQuick 2.0 import "qrc:/gui" Rectangle { id: main_screen ...
View ArticleNot Able to align the rectangles
Hi, Try anchoring it to bottom of your main_screen. anchors.bottom: main_screen.bottom
View Article[solved] Qt Quick 2 performance issues
Hello, I started a new project in which I need to render Qml content on an WQHD display (2560 × 1440). And I’m still trying to get a pretty basic qml test to run fluently. But on the full resolution...
View ArticleQt QML Signal slot
Hello all ! I am trying to emit a signal from Qt to QML file. I tried to implement it as shown below. But the slot_test in qml is not being called. Kindly help to fix it. void ProcessInfo::init() {...
View ArticleDynamic Created Component
Thanks a lot. This is what I was looking for. Thanks & Regards, Narayanan
View ArticleQt QML Signal slot
Did you confirm that signal is emitted ? Complete code snippet would help including the QML file and how and where you are calling emit ensure that signal is really emitted.
View ArticleKeyboard events inside a QQuickPaintedItem/QQuickItem
Hi all, I was writing an OpenGL widget (which is working fine), and I got mouse events working great – but am having a terrible time getting keyboard events to fire/register. I have overridden...
View ArticleStarting to use qtquick and qml from an existing Qt Gui Application
I have a Qt Gui Application for android that is using widgets for the current ui and I was wondering what would be the best way to change to using QtQuick and qml for the ui? I dont want to create a...
View ArticleHow to create a gui for a pure c++ data model (no qt)
What is the best approach to implementing a gui for an existing c++ library? The library in question represents graph data using simple c++ objects (no qt) and standard pointers. I.e do I write an...
View ArticleHow to create a gui for a pure c++ data model (no qt)
Since QtQuick is signal-slot model driven, then yes, you have to provide QObject class over your pure c++ libs
View ArticleConvert listelement role to string
try ListModel { id: model ListElement{names: "354873595" } ...
View ArticleQt.resolvedUrl from included .js file (problems in 5.2)
Hi, We just updated to 5.2 and now have some strange issues. I have a JS function inside a file (FileA.js) that uses Qt.resolvedUrl to then pass to Qt.createComponent to create a dynamic QML object....
View ArticleStarting to use qtquick and qml from an existing Qt Gui Application
@Dheerendra this I know. I was wandeing how to get qml code to run under android that I could call from the existing program to use the qml as the ui instead of the widgets.
View ArticleQtQuick.Controls TableView
You can assign a ScrollViewStyle to it and modify that. See: http://qt-project.org/doc/qt-5.1/qtquickcontrolsstyles/qml-qtquick-controls-styles1-scrollviewstyle.html
View ArticleIs there any *updated* Qt Quick book?
I’d like to start with Qt … from Qt Quick … it’s interesting …. ! Bu I cannot understand nothing from online docs .. I need a book. Can you suggest me one ?
View ArticleDynamic GridLayout
Thanks Vincent, that was the bit I was missing. Looks like you can use Layout.preferredHeight/width – although if this is left as default then it instead uses the items ‘implicitHeight’ and...
View Article