Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create settings window using Qt
Forum Updated to NodeBB v4.3 + New Features

How to create settings window using Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 3.1k Views 2 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.
  • U Offline
    U Offline
    umadevi
    wrote on last edited by A Former User
    #1

    Hai

    I want to create settings window for my application using Qt. The settings window is launched by clicking "Options" action in the menu item. I wanted to figure out how to open up a 2nd window from the main window. As well how the new window return the settings information back to main window. Is there any example for this.? And also How to set default language for the application by programming(not by qt designer) ?

    mrjjM 1 Reply Last reply
    0
    • S Offline
      S Offline
      samdol
      wrote on last edited by
      #2

      You have to use QDialog to create option or preference dialog box.
      here is a good example for you.
      http://www.qtcentre.org/threads/56849-Learning-how-to-send-SIGNALS-from-a-QDialog-to-a-SLOT-QT5
      In order to open 2nd window from main window, you may setup shortcut key or make a menu item on menubar. Connect shortcut or menu item with dialog box by Signal & Slot.

      1 Reply Last reply
      2
      • U Offline
        U Offline
        umadevi
        wrote on last edited by
        #3

        Thanks for the reply :)

        1 Reply Last reply
        1
        • U umadevi

          Hai

          I want to create settings window for my application using Qt. The settings window is launched by clicking "Options" action in the menu item. I wanted to figure out how to open up a 2nd window from the main window. As well how the new window return the settings information back to main window. Is there any example for this.? And also How to set default language for the application by programming(not by qt designer) ?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @umadevi said in how to create settings window using Qt:
          Hi

          • And also How to set default language for the application by programming(not by qt designer) ?

          http://doc.qt.io/qt-5/internationalization.html
          You must supply the translations for all your widgets.
          http://doc.qt.io/qt-5/qtranslator.html#details

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved