Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mouse leave region ...
Forum Updated to NodeBB v4.3 + New Features

Mouse leave region ...

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 5.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahura_24
    wrote on last edited by
    #1

    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 )?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

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

        (Z(:^

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ahura_24
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            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.

            (Z(:^

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ahura_24
              wrote on last edited by
              #6

              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 ...

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                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.

                (Z(:^

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ahura_24
                  wrote on last edited by
                  #8

                  tnx sierdzio

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved