Mouse leave region ...



  • hi . i can use mouseMoveEvent when mouse enter region but how can i use of event when mouse leave region ?!

    @
    void myLineEdit::mouseMoveEvent(QMouseEvent *e)
    {
    QApplication::setOverrideCursor(Qt::waitCursor);
    }

    void myLineEdit::mouseLeaveEvent(QMouseEvent *e) // but doesnt exist please help me for this function
    {
    QApplication::restoreOverrideCursor();
    }
    @

    how can i know mouse leave from region for example QLineEdit ( mouse enter/leave event )?


  • Moderators

    Is "that":http://qt-project.org/doc/qt-4.8/qwidget.html#leaveEvent not what you are looking for?


  • Moderators

    Is "QWidget::leaveEvent()":http://qt-project.org/doc/qt-4.8/qwidget.html#leaveEvent not what you are looking for?



  • tnx but its not work like .net framwork but works !!!


  • Moderators

    Well... don't be surprised ;) Qt is significantly different from .NET. AFAIK, since the last time I had anything to do with .NET was a long time ago.



  • does exist work for Qt programmer in the world ? i dont know popular of Qt in the world ! if i want work for office, Qt is best or .net like C# ? or java ? or other language ...


  • Moderators

    Definitely more pleasant to code in, at least in my opinion. I do work as Qt programmer, and the estimated amount of programmers in Qt is - as far as I can remember - close to half a million. But, you have asked a kind of a hard-to-answer question here. It all depends, and there are no real statistics comparing frameworks with languages (like C# vs Qt) that I know about. If you want language-only statistics, Google is your friend, but even there the stats are not something you can depend on to be very accurate (it's simply very hard to gather meaningful data here). My personal view is - go with what you like, not necessarily with what is the most popular. Try .NET, try Java, try C++/ Qt/ QML and then choose ;)

    I don't quite know what you mean by "work for office". If you meant "to work in the office", then the answer is: pretty much any language is OK. If you meant "work on MS Office", then you probably need to look into VB and C#, but I am of no expertise here, so I might be wrong.



  • tnx sierdzio


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.