Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt_s60_setWindowGroupCursor and Q_SYMBIAN_HAS_SYSTEM_CURSORS Question

    Mobile and Embedded
    2
    2
    1954
    Loading More Posts
    • 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
      archerabi last edited by

      When i deployed my qt application on symbian^3 I sometimes get the warning "qt_s60_setWindowGroupCursor - null handle" when i interact with the application so i went through the source and came across this code .
      @/*

      • Makes the specified cursor appear above a specific native window group
      • Called from QSymbianControl and QApplication::restoreOverrideCursor
      • Window server is needed for this, so there is no equivalent when using
      • the sprite workaround.
        */
        void qt_symbian_setWindowGroupCursor(const QCursor &cursor, RWindowTreeNode &node)
        {
        Qt::HANDLE handle = cursor.handle();
        if (handle) {
        RWsPointerCursor *pcurs = reinterpret_cast<RWsPointerCursor *> (handle);
        node.SetCustomPointerCursor(*pcurs);
        }
        #ifdef Q_SYMBIAN_HAS_SYSTEM_CURSORS
        else {
        TInt shape = qt_symbian_translate_cursor_shape(cursor.shape());
        node.SetPointerCursor(shape);
        }
        #else
        qWarning("qt_s60_setWindowGroupCursor - null handle");
        #endif
        }@

      i tried reading about this but i never understood what the warning was about, any ideas ?

      1 Reply Last reply Reply Quote 0
      • A
        alexander last edited by

        I also have this problem on Nokia N8

        "http://www.qt.gitorious.org/qt/qt/commit/b118ea010442c50b4b0393847c5e7f66b17d10a8?diffmode=sidebyside":http://www.qt.gitorious.org/qt/qt/commit/b118ea010442c50b4b0393847c5e7f66b17d10a8?diffmode=sidebyside

        1 Reply Last reply Reply Quote 0
        • First post
          Last post