Results 1 to 4 of 4

Thread: Building florence virtual keyboard as plug in target

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2016
    Posts
    4
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Building florence virtual keyboard as plug in target

    Hi there. With much effort I have tried to build a florence plug in target. My goal is to be able to use the keyboard in Qt Designer and also be able to call the keyboard when line edits receive focus. I'm trying this build in a Qt 5.5.0 with the GCC compiler on Ubuntu 14.04 distribution. I get an error that some say have to do with the code in florence using an old deprecated library or method. However I don't know how I would be able to fix this. Can anyone help me build this plug in? It will be much appreciated. Attached is a picture with the errors, warnings and the specific line with the issue. Also as advised by members of the community I'm attaching the conflicting code in between #.

    Qt Code:
    1. void Florence::mouseMoveEvent( QMouseEvent *event )
    2. {
    3. if ( event->buttons() > Qt::NoButton ) {
    4. Key *k = static_cast<Key *>( this->scene()->itemAt( this->mapToScene( event->pos() ) ) );
    5. if ( k != this->focusKey ) {
    6. this->autoRepeatTimer->stop();
    7. if ( this->focusKey ) this->focusKey->hoverLeaveEvent();
    8. this->focusKey = k;
    9. if ( k ) {
    10. k->hoverEnterEvent();
    11. this->autoRepeatTimer->start( 1000 );
    12. }
    13. }
    14. }
    15. QGraphicsView::mouseMoveEvent( event );
    16. }
    To copy to clipboard, switch view to plain text mode 

    The specific error is as follows:
    Qt Code:
    1. /home/rey/Desktop/florence/qt/src/florence.cpp:147: error: no matching function for call to 'QGraphicsScene::itemAt(QPointF)'
    2. Key *k = static_cast<Key *>( this->scene()->itemAt( this->mapToScene( event->pos() ) ) );
    3. ^
    To copy to clipboard, switch view to plain text mode 

    **Update: I know the itemAt is the problem. I have looked online for refactored code from other developers on places like Github to see how they fixed the problem. Still I get new errors when I try to fix the problem.
    Attached Images Attached Images
    Last edited by anda_skoa; 7th October 2016 at 10:25. Reason: changed # to [code]

Similar Threads

  1. Virtual keyboard example
    By Coder5546 in forum Newbie
    Replies: 1
    Last Post: 29th November 2014, 13:45
  2. Qt with Florence Virtual Keyboard
    By JonnyJP in forum Qt Programming
    Replies: 5
    Last Post: 11th June 2012, 07:28
  3. Virtual Keyboard
    By NoRulez in forum Qt Programming
    Replies: 9
    Last Post: 5th August 2010, 07:02
  4. How to get the virtual keyboard?
    By ramesh.bs in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd June 2010, 11:58
  5. virtual keyboard
    By sar_van81 in forum Qt Programming
    Replies: 5
    Last Post: 22nd December 2006, 13:40

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.