Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. APK Android
Qt 6.12 LTS is out! See what's new in the release blog

APK Android

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 640 Views
  • 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.
  • O Offline
    O Offline
    Oumayma
    wrote on last edited by
    #1

    Hello, I am making an application that has the function of a text editor and when I generate the android version of the application, the menu does not come out as I would like I do not know if you can help me with it.

    Expected results:

    5f337be0-07de-4305-959d-d8cf5489b9f5-image.png

    results obtained:

    74a877f2-ae99-454e-be71-268461c1e06f-image.png

    I need my menu to be placed under the application logo horizontally.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      Oumayma
      wrote on last edited by
      #2

      I have found the solution in case it works for someone was to add the following line of code:
      ui-> menubar-> setLayoutDirection (Qt :: LeftToRight);

      1 Reply Last reply
      1
      • H Offline
        H Offline
        hinokhan
        wrote on last edited by
        #3

        @Oumayma said in APK Android:

        Hello, I am making an application that has the function of a text editor and when I generate the android version of the application, the menu does not come out as I would like I do not know if you can help me with it

        Menu Implementation:

        How have you implemented the menu in your text editor application? (e.g., using the Options Menu, Context Menu, Toolbar)
        Are you using any third-party libraries or custom views for the menu?
        Code Snippets:

        Could you share relevant code snippets related to the menu implementation in your application?
        Are there specific sections of your code where you believe the issue might be occurring?
        Menu Layout:

        Are you using XML layouts for your menu items, and have you verified that the layout files are correctly defined?
        Have you set appropriate icons, titles, and actions for each menu item?
        Menu Visibility:

        Are there any conditions or logic in your code that might affect the visibility or behavior of the menu items?
        Have you checked whether the menu items are correctly associated with the corresponding activities or fragments?
        Testing on Emulator/Devices:

        Have you tested the application on different Android devices or emulators to see if the issue is device-specific?
        Are there any particular Android versions where the menu behaves differently?
        Theme and Styles:

        Have you customized the theme or styles for your application, and could this be affecting the appearance of the menu?
        Are there any conflicts between your custom styles and the default Android styles for menus?
        Menu Events:

        Are the menu items responding to user interactions, such as clicks or long presses?
        Have you implemented the necessary event handlers for the menu items?
        Android Version Compatibility:

        Is your application designed to be compatible with a specific minimum Android version, and have you tested it on devices running that version or newer?
        Toolbar Configuration:

        If you're using a Toolbar for your menu, have you configured it correctly in your layout and activity or fragment?
        Have you set the Toolbar as the ActionBar for the activity?
        Screenshots or Descriptions:

        Can you provide a visual representation of how the menu appears and describe how you would like it to look?
        Are there any specific design requirements or guidelines you are trying to follow?

        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
        • Unsolved