Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Menu not visible
Forum Updated to NodeBB v4.3 + New Features

Menu not visible

Scheduled Pinned Locked Moved Mobile and Embedded
9 Posts 2 Posters 3.6k 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.
  • D Offline
    D Offline
    daviddc1979
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daviddc1979
      wrote on last edited by
      #2

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

      and I still don't see the menus.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daviddc1979
          wrote on last edited by
          #4

          Hi,

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

          not in portrait and not in landscape mode

          1 Reply Last reply
          0
          • D Offline
            D Offline
            daviddc1979
            wrote on last edited by
            #5

            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]

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • D Offline
                D Offline
                daviddc1979
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  daviddc1979
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #9

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

                    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