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 disable the original mainwindow widget??
QtWS25 Last Chance

How to disable the original mainwindow widget??

Scheduled Pinned Locked Moved Solved General and Desktop
mainwindowqtcreatorqt5.11.0
6 Posts 4 Posters 1.1k 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.
  • K Offline
    K Offline
    Kinesis
    wrote on 3 Aug 2018, 03:33 last edited by
    #1

    Hi, I am trying to disable the original mainwindow widget when I execute the code . This original widget appear with my newly created widget . I don't want this original widget to be shown .

    S R 2 Replies Last reply 3 Aug 2018, 04:23
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 3 Aug 2018, 04:15 last edited by
      #2

      Hi
      You mean to hide it ?

      im not sure what you mean with

      • This original widget appear with my newly created widget
      1 Reply Last reply
      1
      • K Kinesis
        3 Aug 2018, 03:33

        Hi, I am trying to disable the original mainwindow widget when I execute the code . This original widget appear with my newly created widget . I don't want this original widget to be shown .

        S Offline
        S Offline
        sankarapandiyan
        wrote on 3 Aug 2018, 04:23 last edited by
        #3

        @Kinesis QApplication a(argc, argv);
        MainWindow w;
        // w.show();

        I Think you may try this in the main.cpp

        K 1 Reply Last reply 3 Aug 2018, 04:48
        3
        • S sankarapandiyan
          3 Aug 2018, 04:23

          @Kinesis QApplication a(argc, argv);
          MainWindow w;
          // w.show();

          I Think you may try this in the main.cpp

          K Offline
          K Offline
          Kinesis
          wrote on 3 Aug 2018, 04:48 last edited by
          #4

          @sankarapandiyan
          Thanks . :)

          1 Reply Last reply
          1
          • K Kinesis
            3 Aug 2018, 03:33

            Hi, I am trying to disable the original mainwindow widget when I execute the code . This original widget appear with my newly created widget . I don't want this original widget to be shown .

            R Offline
            R Offline
            Ratzz
            wrote on 3 Aug 2018, 05:11 last edited by
            #5

            @Kinesis said in How to disable the original mainwindow widget??:

            I don't want this original widget to be shown .

            If you do not need QMainWindow to be shown why do you create it??

            More Info:
            https://stackoverflow.com/questions/7145585/does-it-matter-if-i-start-a-qt-base-as-qmainwindow-or-as-a-qdialog?rq=1
            https://stackoverflow.com/questions/14384660/can-i-have-a-qt-project-without-mainwindow

            --Alles ist gut.

            K 1 Reply Last reply 3 Aug 2018, 06:53
            7
            • R Ratzz
              3 Aug 2018, 05:11

              @Kinesis said in How to disable the original mainwindow widget??:

              I don't want this original widget to be shown .

              If you do not need QMainWindow to be shown why do you create it??

              More Info:
              https://stackoverflow.com/questions/7145585/does-it-matter-if-i-start-a-qt-base-as-qmainwindow-or-as-a-qdialog?rq=1
              https://stackoverflow.com/questions/14384660/can-i-have-a-qt-project-without-mainwindow

              K Offline
              K Offline
              Kinesis
              wrote on 3 Aug 2018, 06:53 last edited by
              #6

              @Ratzz
              Thanks for your references.

              1 Reply Last reply
              0

              1/6

              3 Aug 2018, 03:33

              • Login

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