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 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 .

    sankarapandiyanS RatzzR 2 Replies Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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

        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 .

        sankarapandiyanS Offline
        sankarapandiyanS Offline
        sankarapandiyan
        wrote on 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
        • sankarapandiyanS sankarapandiyan

          @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 last edited by
          #4

          @sankarapandiyan
          Thanks . :)

          1 Reply Last reply
          1
          • K Kinesis

            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 .

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on 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
            7
            • RatzzR Ratzz

              @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 last edited by
              #6

              @Ratzz
              Thanks for your references.

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