×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2009
    Location
    Russia
    Posts
    51

    Question QT + Belle menuBar from Qt Quick components

    Hello!
    I want to replace my old menu bar with Belle menubar. I found out that this Belle menuBar is part of Qt Quick components, so I created QDeclarativeView objects from .qml file, which describe my new menuBar, and menu, which I would like to show when I click button "Menu".

    The problems is that when I click on button "Menu" in menuBar a menu doesn't appear, although menuBar is faded. Thanks in advance!

    .qml:

    Code:
    import QtQuick 1.0
    import com.nokia.symbian 1.0
    
    ToolBar {
        id: toolbar1
        x: 0
        y: 0
    
        ToolButton {
            id: toolbutton1
            y: 0
            width: 60
            height: 60
            text: ""
            clip: false
            smooth: false
            pressed: false
            iconSource: "toolbar-back.svg"
            anchors.left: parent.left
            anchors.leftMargin: 6
            flat: true
        }
    
        ToolButton {
            id: toolbutton2
            x: 0
            y: 0
            width: 60
            height: 60
            text: ""
            flat: true
            iconSource: "toolbar-menu.svg"
            anchors.right: parent.right
            anchors.rightMargin: 6
            onClicked: mainMenu.open()
        }
        
        Menu {
            id: mainMenu
            content: MenuLayout {
                MenuItem {
                    height:50
                    width:100
                    text: "Red"
                    onClicked: rect.color = "Red"
                }
            }
        }
    }
    .cpp
    Code:
    ...
    QDeclarativeView *qmlView = new QDeclarativeView;
    qmlView->setSource(QUrl("qrc:/new/prefix1/myqml.qml"));
    qmlView->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed);
    layer->addWidget(qmlView);
    centralwidget->setLayout(layer);
    ...

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: QT + Belle menuBar from Qt Quick components

    Can somebody transfer this question to Qt Quick section.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Location
    Russia
    Posts
    51

    Re: QT + Belle menuBar from Qt Quick components

    Yes, I will be really grateful for this.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Location
    Russia
    Posts
    51

    Re: QT + Belle menuBar from Qt Quick components

    I have just lunch my app on N8 and I can see menu well. But on emulator it is still not visible (

  5. #5
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: QT + Belle menuBar from Qt Quick components

    Have you upgraded your Qt SDK to the latest version ?

  6. #6
    Registered User
    Join Date
    Apr 2009
    Location
    Russia
    Posts
    51

    Re: QT + Belle menuBar from Qt Quick components

    Yes, I have latest SDK with update from 28 september. I have CODA installed on device and it works well via WIFI or Usb.

Similar Threads

  1. Qt Quick components 1.0
    By waelfarouk in forum [Archived] Qt Quick
    Replies: 6
    Last Post: 2011-10-06, 10:26
  2. Compatibility Qt Quick Components
    By pixsta in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-09-18, 07:16
  3. Qt Quick components 1.0 & SmartInstaller ?
    By oskarinarki in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 4
    Last Post: 2011-09-10, 04:18
  4. Replies: 0
    Last Post: 2011-07-07, 11:13
  5. Qt Quick components installation
    By Diph in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-11-20, 15:19

Posting Permissions

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