In my github there's a simple TODO app with C++/QML: https://github.com/danielfranca/procrastinationkiller The C++ is used for the Extension Manager and for a more precise timer.
Here you've a simple C++ class being exposed to QML via a singleton object: https://github.com/danielfranca/procrastinationkiller/blob/master/include/extensionmanager.h https://github.com/danielfranca/procrastinationkiller/blob/master/main.cpp And here a C++ class being exposed registering a new QML type: https://github.com/danielfranca/procrastinationkiller/blob/master/include/alarm.h https://github.com/danielfranca/procrastinationkiller/blob/master/main.cpp Em ter, 27 de out de 2015 às 15:20, Edward Sutton via Interest < interest@qt-project.org> escreveu: > On Oct 27, 2015, at 8:59 AM, NoRulez <noru...@me.com> wrote: > > The problem is that I don't won't to learn an additional "language" only > for ui's. > > I doesn't found really helpful examples which uses QML as the ui and c++ > as the logic part. > > Maybe someone have useful links? > > > If anyone has example code to share I also am interested. > > I also could not find examples of C++ logic code interacting with QML ui. > I wanted to replace some QTreeWidget ui with QML. > > I wanted to experiment with creation of a QML “drill down” list view. For > example: > > 1. C++ displays QML in a widget window of some type > 2. A signal returns the user selection to C++ slot. > > I assume it could be done. Not sure if it is a good idea to mix simple > QML ui with QWidget C++ Code. > > > -Ed > > > > > > Thanks > > > Am 27.10.2015 um 14:18 schrieb Burak Arslan via Interest < > interest@qt-project.org>: > > > > On 10/27/15 16:04, Edward Sutton via Interest wrote: > > However a Qt widget app can be ugly on Android and iOS. Buttons and > tables appear too small for fingers. Font size is out of proportion. > > > Maybe that'll change with Qt 5.6 when the QT_SCALE_FACTOR support lands? > Did anyone play with it? > > Burak > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > > This email and any files transmitted with it from The Charles Machine > Works, Inc. are confidential and intended solely for the use of the > individual or entity to which they are addressed. If you have received this > email in error please notify the sender. Our company accepts no liability > for the contents of this email, or for the consequences of any actions > taken on the basis of the information provided, unless that information is > subsequently confirmed in writing. Please note that any views or opinions > presented in this email are solely those of the author and do not > necessarily represent those of the company. Finally, the recipient should > check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest