Results 1 to 2 of 2

Thread: qtquick application event handling from c++ class

  1. #1
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default qtquick application event handling from c++ class

    have designed the basic UI with some buttons,textareas using QtQuick application. I need to write the event handlers in c++ for the events like button click. How can i access the qml elements from c++ file?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qtquick application event handling from c++ class

    That is the wrong way around.

    Make your QML elements call C++ methods instead.

    Cheers,
    _

Similar Threads

  1. How to create a QtQuick 1 Application project?
    By TheIndependentAquarius in forum Qt Tools
    Replies: 1
    Last Post: 23rd October 2013, 11:02
  2. Blank screen with a QtQuick application (with Qt 5.1 not with Qt5.0.2)
    By slimittn in forum Installation and Deployment
    Replies: 1
    Last Post: 29th June 2013, 08:47
  3. Replies: 1
    Last Post: 25th October 2012, 06:46
  4. Key Press Event Handling
    By kosasker in forum Newbie
    Replies: 8
    Last Post: 22nd March 2011, 15:49
  5. event handling...
    By xyzt in forum Qt Programming
    Replies: 1
    Last Post: 25th March 2008, 07:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.