Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:08:00+00:00 2026-06-05T21:08:00+00:00

So basically I want to create a GUI app using PySide and the Qt

  • 0

So basically I want to create a GUI app using PySide and the Qt Framework. I am using the QT designer to make the initial UI design. The first version of the app will run on Mac and I want it to be like other Mac applications where the name of the app is in bold and all the way to the left with an “About”, “Preferences”, and “Quit”.

The problem is that whenever I add these types of strings the drop down stops working.

Any tips on this would be helpful this is my first GUI using PySide, QT Framework, andd QT Designer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:08:02+00:00Added an answer on June 5, 2026 at 9:08 pm

    Below is an example of getting the About menu item working correctly on Mac, in C++. The key is to setMenuRole to the correct role. There are roles for Quit, About, Preferences, and About Qt. The menu item with application’s name in bold is provided by the OS, you don’t need to do anything special to get that. Qt will automatically move items with correct roles where they belong. You don’t need to do anything to get the Quit menu item, it’s added automatically if you don’t provide one.

    If you’re making menus in Qt Designer, you simply set the menuRole property of those menu QActions. That is all that’s needed for the menus to go to correct places. Do not add a menu with your application’s name. Simply create usual Windows-style menus (File, Edit, Help), and the items will be rearranged appropriately to their roles.

    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
    
        a.setApplicationVersion(...);
        a.setOrganizationName(...);
        a.setOrganizationDomain(...);
        a.setApplicationName(...);
    
        MainWidget w; // MainWidget is your widget class
    
        QMessageBox * aboutBox = new QMessageBox(&w);
        QImage img(":/images/youricon.png");
        aboutBox->setIconPixmap(QPixmap::fromImage(
            img.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation)));
        QString txt;
        txt = txt.fromUtf8(
                "fooapp %1\nCopyright \xC2\xA9 2012 Ed Hedges\n"
                "Licensed under the terms of ....");
        txt = txt.arg(a.applicationVersion());
        aboutBox->setText(txt);
    
        QMenuBar menu;
        QMenu * submenu = menu.addMenu("Help");
        QAction * about = submenu->addAction("About", aboutBox, SLOT(exec()));
        about->setMenuRole(QAction::AboutRole);
    
        w.show();
    
        return a.exec();
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create own filetype to save objects in my app. Basically, I
Basically, I want a Java GUI with multiple frames, so I'm using JInternalFrame ,
I'm using resque-status for Resque/Redis... https://github.com/quirkey/resque-status I basically want to create a new Sinatra
Basically I want to create one large object of many object in JavaScript. Something
I have php generating html and I want to create layers. Basically I want
I want to create a Google Docs document from within Haskell, so basically I
How to create imaged scrollbars, for example: http://www.openstudio.fr/jquery/index.htm Basically, I want to create my
I really want to create a stunning-looking GUI desktop application that looks like, for
basically, I have a program that has a class to create a basic GUI,
I'm stuck. I basically want to create a LOCAL data file (csv file) from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.