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 select startup form in QT Widgets Application?
Forum Updated to NodeBB v4.3 + New Features

How to select startup form in QT Widgets Application?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 446 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.
  • J Offline
    J Offline
    jellyv
    wrote on 24 Jul 2020, 14:25 last edited by
    #1

    When user starts the program, I want to show a form different then mainwindow.ui (secondwindow.ui, for example). I cannot find the setting to change that. How would i do that?

    I'm using QT qreator 3.6.1, based on QT 5.6.0. Compiler: MSVC 2013, 32 bit.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 24 Jul 2020, 14:26 last edited by
      #2

      Hi
      I never saw a setting for that like in say C++ Builder.
      Just edit the main.cpp and simply new another form there instead of MainWindow

      1 Reply Last reply
      3
      • J Offline
        J Offline
        jellyv
        wrote on 24 Jul 2020, 14:28 last edited by
        #3

        :facepalm: Completely forgot about that, thanks for the quick reply.

        P 1 Reply Last reply 24 Jul 2020, 16:41
        1
        • J jellyv
          24 Jul 2020, 14:28

          :facepalm: Completely forgot about that, thanks for the quick reply.

          P Offline
          P Offline
          Pl45m4
          wrote on 24 Jul 2020, 16:41 last edited by
          #4

          @jellyv

          Something like QSplashScreen?

          https://doc.qt.io/qt-5/qsplashscreen.html#details

          But even in this case, you need to create and show your widget manually :)


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0

          1/4

          24 Jul 2020, 14:25

          • 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