On Thursday, May 11, 2017 at 1:12:49 PM UTC+2, Bas de Bruijn wrote: > > > > > On 11 May 2017, at 12:36, Marius Alksnys wrote: > > > > This might be related to the sequence of component creation at startup. > > > > I think you might want to read this thread: > > QtQuickVcp: how to create an array of HalLed for GPIO? > > news:// > news.gmane.org:119/7a221e79-d365-44c8-88b1-fd99fce8e...@googlegroups.com
I've read thru the topic you referred. But so far it's a bit hard to understand for an uninitiated one in QtQuick. can't seem to grasp the "logic" of QtQuick. > Thanks Marius, I'll try that. > Bas > > > > > 05/11/2017 10:45 AM, Bas de Bruijn rašė: > >> Hi, > >> > >> I've been building single QtQuickVCP window UI's in the past, and today > >> I try to build some tabs into my UI. > >> I'd like to have a tab with buttons, and a tab with IO's for inspecting > >> HAL pins. So for this I looked into Machineface and I moved my buttons > >> and hal pins to a different file. > >> Frankly I've mostly extended upon examples, and what happpened was > >> simple to follow but in Machineface I can't seem to find out what's > >> happening when. > >> > >> I have come up with the following setup: > >> 3 files: > >> - UI.qml (this is the main app) > >> - Buttons_tab.qml (now holding what was previously in UI) > >> - Io_tab.qml > >> > >> in UI.qml I've added: > >> ``` > >> TabView { > >> id: mainTab > >> frameVisible: false > >> anchors.left: toolBar.right > >> anchors.right: displayPanel.left > >> anchors.top: parent.top > >> anchors.bottom: parent.bottom > >> anchors.rightMargin: Screen.pixelDensity > >> anchors.leftMargin: Screen.pixelDensity > >> > >> Buttons_tab { } > >> Io_tab { } > >> } > >> ``` > >> > >> When running machinekit-client I get the message in the window after > >> connecting: > >> > >> ``` > >> No error > >> pin count mismatch:pb comp=1 hal comp=24 > >> ``` > >> > >> I probably missed something trivial. > >> Any thoughts or pointers to understanding what I do wrong? > >> > >> Cheers, > >> Bas > >> > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.