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 440 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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        Pl45m4P 1 Reply Last reply
        1
        • J jellyv

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

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on 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

          • Login

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