Re: [SailfishDevel] QBluetoothServer Client app

2016-11-15 Thread Bea Lam
Hi Riku, > On 16 Nov 2016, at 3:17 pm, Riku Lahtinen wrote: > > Hi! > > I have tried to modify my Fast chess app to have a two player mode with two > devices. I planned to code it using bluetooth technology. I found a good QT > example Ping Pong, which has a functionality I need. > > Current

Re: [SailfishDevel] QBluetoothServiceDiscoveryAgent search fails on Sailfish OS

2016-07-13 Thread Bea Lam
Hi Krzysztof, > On 14 Jul 2016, at 5:17 am, Krzysztof Lesiak wrote: > Now, I have found this thread: > https://lists.sailfishos.org/pipermail/devel/2015-March/005781.html > > I'd very much like to be able to submit my application to harbour when it's > done, which can take some time, but stil

Re: [SailfishDevel] Known Bluetooth devices

2014-06-23 Thread Bea Lam
On 24 Jun 2014, at 11:30 am, Tomasz Sterna wrote: > Hello. > > Is there a way of obtaining a list of known BT devices from pure Qt C++? > > I know there is KnownDevicesModel in Sailfish.Bluetooth QML module, but > I would like to get that information on C++ level - in an command-line > applicat

Re: [SailfishDevel] cannot hide() contextmenu

2013-12-18 Thread Bea Lam
On 19 Dec 2013, at 12:45 am, Wim de Vries wrote: > Thx. That works. > Maybe sth for in the documentation in the future? Sounds good, I’ll add a note to the docs to say that the height of the ContextMenu should not be explicitly set or changed. cheers, Bea

Re: [SailfishDevel] cannot hide() contextmenu

2013-12-17 Thread Bea Lam
Hello, On 17 Dec 2013, at 11:17 pm, Wim de Vries wrote: > Hi, > I am trying a contextmenu. I can show() it, but not hide it. > Clicking on the lower rectangle does not hide it: Just remove the “anchors.fill: parent” from your ContextMenu declaration. The ContextMenu type internally adjusts its

Re: [SailfishDevel] connect gridview on delegates click signal

2013-11-21 Thread Bea Lam
Hi Franck, To get a reference to a particular instance of a delegate, just give the delegate an id, and references to that id from within the delegate declaration will refer to that instance only. The “this” keyword is not valid in this context. (See http://qt-project.org/doc/qt-5.0/qtqml/qtqm

Re: [SailfishDevel] SearchField and focus

2013-08-11 Thread Bea Lam
t; Hello, > > Indeed. > > Thanks a lot for the explanation. > > Regards, > > Le 2013-08-09 03:12, Bea Lam a écrit : > > Hello, > > > > The problem is that when the model changes, the last added delegate > > steals the focus, as ListView has a focus scop

Re: [SailfishDevel] SearchField and focus

2013-08-08 Thread Bea Lam
Hello, The problem is that when the model changes, the last added delegate steals the focus, as ListView has a focus scope. If you set "currentIndex: -1" on the ListView, then this behaviour will be disabled. (This is what's done in the SearchPage.qml example in silicacomponentgallery.) cheer

Re: [SailfishDevel] Dynamically filling up a Combobox

2013-06-16 Thread Bea Lam
Hi Aleksi, You could use a Repeater to fill the ComboBox's ContextMenu and then dynamically change the model of the Repeater. E.g. ComboBox { menu: ContextMenu { Repeater { model: ListModel { id: listModel } MenuItem { text: model.name } }