×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    ToolBar buttons aren't visible while running debug on Simulator

    Hi all!

    Strange behavior of Simulator while running Debug of my QML project with PageStackWindow - ToolBar buttons are not displayed at all.

    If running without debugging (I mean simple run with Ctrl+R) then ToolBar buttons are visible.

    Is there any way to fix this?

    Thanks!

    PS: latest Nokia QtSDK.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: ToolBar buttons aren't visible while running debug on Simulator

    Hi

    I have checked on the latest Qt SDK 1.2.1 . ToolBar buttons are shown.

    Please check you enable it
    Code:
    PageStackWindow {
    ...........
        showStatusBar: true
        showToolBar: true
    ..........
    }
    Also there is useful QML component gallery application project that can serve you as code example : https://projects.developer.nokia.com/uivisualisation

  3. #3
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: ToolBar buttons aren't visible while running debug on Simulator

    Checked, they are enabled.

    When I run project with simple "green play button" (Ctrl+R) then ToolBar buttons are visible, but when run it with "green play button with bug" then there no buttons on toolbar at all.

  4. #4
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: ToolBar buttons aren't visible while running debug on Simulator

    Hi

    indeed Simulator Qt for MinGW in debug mode gives property binding error that prevents toolbar instantiation :
    Code:
    file:///C:/QtSDK/Simulator/Qt/mingw/imports/com/nokia/symbian.1.1/PageStackWindow.qml:86: Unable to assign QObject* to ToolBar_QMLTYPE_1*
    I have created QTCREATORBUG-7634 bug report on that

  5. #5
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: ToolBar buttons aren't visible while running debug on Simulator

    Thanks for creating a bug report, but it already closed with such comment:
    Kai Köhne added a comment - 16/Jul/12 11:38 AM
    This is a known issue: The QML debugger in Qt 4.x uses QEventLoop's to be able to process events from the network when being stopped. However, this means that the order of delivery for all events might be altered, which breaks the Symbian components. The problem underneath has been fixed in Qt 5, but there's no way to solve the fundamental issue in Qt 4 (except maybe for working around it in the Symbian components, which are AFAIK done). So I'm afraid you have to disable "QML debugging" in the run settings when debugging, or ignore the error.
    It is unfortunate that the problem will remain without a solution.

  6. #6
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: ToolBar buttons aren't visible while running debug on Simulator

    Yes I have seen that resolution. In fact there are extremely few cases when you need debug --- console.log is enough to understand problem i think.

  7. #7
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: ToolBar buttons aren't visible while running debug on Simulator

    In most cases. But sometimes it is necessary to debug a cpp code, but in the same time a navigation buttons on the toolbar is not available. It's not so critical but uncomfortable.

    Thanks for support, Igor.

Similar Threads

  1. How to change toolbar buttons in every pageStack page
    By shintu in forum [Archived] Qt Quick
    Replies: 5
    Last Post: 2011-11-06, 16:11
  2. How to disable Toolbar 3 buttons in landscape mode
    By pncbose in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-06-17, 14:52
  3. spacing between toolbar buttons
    By rajasg in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-03-31, 09:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •