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. Integrate my own CMainWindow in Qt Creator
QtWS25 Last Chance

Integrate my own CMainWindow in Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 259 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.
  • L Offline
    L Offline
    Linex
    wrote on 23 Oct 2019, 07:41 last edited by
    #1

    Hi,
    i would like to derive my own CMainWindow - class from QMainWindow.
    I would like to adapt this new class to my wishes. (e.g. Menu-Bar, Buttons, ...)

    Now i would like to proceed as follows:

    MyApp0.png
    MyApp1.png
    MyApp2.png
    MyApp3.png

    For class information I can choose the base class. Can I set QtCreator to select my CMainWindow - class?
    Or is there another way to create it using the QtCreator? (Plugin,....)

    A 1 Reply Last reply 23 Oct 2019, 07:46
    0
    • L Linex
      23 Oct 2019, 07:41

      Hi,
      i would like to derive my own CMainWindow - class from QMainWindow.
      I would like to adapt this new class to my wishes. (e.g. Menu-Bar, Buttons, ...)

      Now i would like to proceed as follows:

      MyApp0.png
      MyApp1.png
      MyApp2.png
      MyApp3.png

      For class information I can choose the base class. Can I set QtCreator to select my CMainWindow - class?
      Or is there another way to create it using the QtCreator? (Plugin,....)

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 23 Oct 2019, 07:46 last edited by
      #2

      Hi @Linex,

      you can add your own wizard or maybe modify one of the existing wizards. The technology is explained here:

      https://doc.qt.io/qtcreator/creator-project-wizards-json.html

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 23 Oct 2019, 08:12 last edited by
        #3

        But the question is - why? Do you really create that much new projects so it would save you that much time?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        L 1 Reply Last reply 23 Oct 2019, 08:24
        0
        • C Christian Ehrlicher
          23 Oct 2019, 08:12

          But the question is - why? Do you really create that much new projects so it would save you that much time?

          L Offline
          L Offline
          Linex
          wrote on 23 Oct 2019, 08:24 last edited by
          #4

          @Christian-Ehrlicher Yes,
          we develop many apps with the same base-functions but different details. e.g. as stackedwidgets

          1 Reply Last reply
          0

          1/4

          23 Oct 2019, 07:41

          • Login

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