Menu not visible



  • Hi,

    I'm using QtCreator 2.2.0 and I have created a new Qt Mobility application.
    I design a main windows using the UI designer.

    I have added some menus and menu options and when I run my application with the Symbian Simulator I can use the menus.
    when I deploy the app on my Nokia N8, I don't see the menus.

    Any idea?

    thanks for your support.

    Kind regards,
    David DC



  • Btw, I have modified the size of my MainWindow
    width: 360
    height: 640

    and I still don't see the menus.



  • Menus on Symbian should be in left soft-button on screen. Did you look there?



  • Hi,

    the soft-button (left for menu and right for exit) are not visible anymore...

    not in portrait and not in landscape mode



  • Below you can find my mainwindow.ui file.
    Maybe something wrong with the sizing I have set?

    Thanks anyway :)
    @
    <?xml version="1.0" encoding="UTF-8"?>
    <ui version="4.0">
    <class>MainWindow</class>
    <widget class="QMainWindow" name="MainWindow">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>360</width>
    <height>640</height>
    </rect>
    </property>
    <property name="windowTitle">
    <string>MainWindow</string>
    </property>
    <widget class="QWidget" name="centralWidget">
    <widget class="QWidget" name="">
    <property name="geometry">
    <rect>
    <x>11</x>
    <y>12</y>
    <width>341</width>
    <height>521</height>
    </rect>
    </property>
    <layout class="QVBoxLayout" name="verticalLayout">
    <item>
    <layout class="QHBoxLayout" name="horizontalLayout">
    <item>
    <widget class="QLabel" name="label">
    <property name="text">
    <string>David 19:48</string>
    </property>
    </widget>
    </item>
    <item>
    <widget class="QLineEdit" name="lineEdit"/>
    </item>
    </layout>
    </item>
    <item>
    <widget class="QTextEdit" name="textEdit"/>
    </item>
    </layout>
    </widget>
    <widget class="QWidget" name="">
    <property name="geometry">
    <rect>
    <x>20</x>
    <y>540</y>
    <width>321</width>
    <height>25</height>
    </rect>
    </property>
    <layout class="QHBoxLayout" name="horizontalLayout_2">
    <item>
    <widget class="QPushButton" name="pushButton_2">
    <property name="text">
    <string>PushButton</string>
    </property>
    </widget>
    </item>
    <item>
    <widget class="QPushButton" name="pushButton">
    <property name="text">
    <string>PushButton</string>
    </property>
    </widget>
    </item>
    </layout>
    </widget>
    <zorder>label</zorder>
    <zorder>lineEdit</zorder>
    <zorder>textEdit</zorder>
    <zorder>pushButton</zorder>
    <zorder>pushButton_2</zorder>
    <zorder>pushButton</zorder>
    </widget>
    <widget class="QMenuBar" name="menuBar">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>360</width>
    <height>21</height>
    </rect>
    </property>
    <property name="sizePolicy">
    <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
    </sizepolicy>
    </property>
    <property name="defaultUp">
    <bool>true</bool>
    </property>
    <widget class="QMenu" name="menuOptions">
    <property name="title">
    <string>Options</string>
    </property>
    <addaction name="actionExit"/>
    <addaction name="actionPrint"/>
    </widget>
    <addaction name="menuOptions"/>
    </widget>
    <widget class="QStatusBar" name="statusBar"/>
    <action name="actionExit">
    <property name="text">
    <string>Exit</string>
    </property>
    </action>
    <action name="actionPrint">
    <property name="text">
    <string>Print</string>
    </property>
    </action>
    </widget>
    <layoutdefault spacing="6" margin="11"/>
    <resources/>
    <connections/>
    </ui>
    @

    [edit: code highlighted / Denis Kormalev]



  • Looks like you are running in fullscreen mode. Try to run in maximized mode.

    P.S. And please don't forget to use @ tags for code



  • I will try and thanks for he hint about @ tags for code



  • Hi,

    I tried and it works.
    I didn't touch the UI anymore and I change main.cpp file with:

    @
    //mainWindow.showExpanded();
    mainWindow.showMaximized();
    @

    and it works fine...

    Thanks for your support.
    David DC



  • You are welcome :)
    Don't forget to change title of thread and add [Solved] there


Log in to reply
 

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