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. Why are no .header and .cpp files added by the designer for the second window?
Forum Updated to NodeBB v4.3 + New Features

Why are no .header and .cpp files added by the designer for the second window?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 698 Views 1 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.
  • B Offline
    B Offline
    beckstar101
    wrote on last edited by
    #1

    Hello guys,

    I try to code a tool with 3-4 windows.
    As I added the 2. Form I realised that there was no .h file in header files folder and no .cpp file in source files for this 2. form.
    Do I need to generate them on my own or what else do I need to do?
    Cheers

    Steven

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Adding a .ui file does not generate any class for it (the .h and .cpp files) automatically (because that might not be what you want in some cases).

      To do that use a wizard: Add new -> Qt -> Qt Designer Form Class. This will generate a .ui, .h and a .cpp file for you.

      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