Daily Archives: 09.01.2015

Qt Quick Control’s TableView and C++ model using roles

Qt Quick Controls made big move forward in latest Qt releases. For example, in Qt 5.4 it takes native look on Android platform using styling option

Since it becomes more and more useful, its just waste of time to do not use it!

But its always there is some buts.

This time my stumbling-stone was TableView plus C++ data model

 

 

 

 

 

 

 

 

 

 

I’m not going to speechify a lot. Basically, standard scheme works, but my goal was to use roles as columns.In theory it was OK but every time I’ve met absence of data in my table. The only indicator that table works was increasing row counter

The problem was that roleNames() method of QAbstractItemModel class was not called. And the reason is that the method must be protected! For some reason this method in the Qt documentation as well as in tons of examples defined as public, and this is works in most cases but not for TableView!

 

‘The Shining’ hotel wants you to design a hedge maze for it

By Amanda Kooser The hotel that inspired one of Stephen King’s most famous books now wants a truly awesome hedge maze for visitors to get lost in.

…read more

Source:: http://cnet.com.feedsportal.com/c/34938/f/645093/s/422ad3fe/sc/10/l/0L0Scnet0N0Cnews0Cthe0Eshining0Ehotel0Ewants0Eyou0Eto0Edesign0Ea0Ehedge0Emaze0Efor0Eit0C0Tftag0FCAD590Aa51e/story01.htm

      

iPhone 6, 6 Plus models now all in stock at Apple’s online store

By Lance Whitney The supply of Apple’s newest iPhones has apparently caught up with demand, as all flavors are now available to ship immediately.
…read more

Source:: http://cnet.com.feedsportal.com/c/34938/f/645093/s/4228d1f6/sc/15/l/0L0Scnet0N0Cnews0Cphone0E60E60Eplus0Emodels0Enow0Eall0Ein0Estock0Eat0Eapples0Eonline0Estore0C0Tftag0FCAD590Aa51e/story01.htm