Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:53:58+00:00 2026-06-18T01:53:58+00:00

I have 3 .UI files that i’m trying to link together. The first is

  • 0

I have 3 .UI files that i’m trying to link together. The first is a main menu that only has 2 buttons on it. Each button should 1.) close the MainMenu.UI window and 2.)display the .UI file associated with that button.

My problem is I cant find any functions that either hide or display the currently used .UI file. I also can’t find a way to reference the other .UI files from the button1_onClick() function in the MainMenu.UI file.

hope I didn’t make this more confusing than it needed to be, just trying to link together .UI files with buttons

EDIT:
I have been to the QWindow Class docs to try and find a function that does what I’m looking for but I can’t seem find anything useful.

I finally figured out how access the show() and hide() methods so all i need now is to figure out how to reference other .UI files so I can show() or hide() those also. I tried using the SetWindowFilePath() function passing it the file path of another .ui file but this didn’t work either

this->hide();
this->setWindowFilePath("C:/Users/Scott/Desktop/...blah blah... /mainui.ui");
this->show();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:53:59+00:00Added an answer on June 18, 2026 at 1:53 am

    You don’t hide or show .ui files, the C++ code generated from those files are wrapped into C++ classes which are derived directly or indirectly from QWidget and the instances of those classes can use show() or hide()

    To use two Qt “forms” read this faq and ask specific questions (and maybe show some code) if you still can’t get it to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few files that resides on a server, im trying to implement a
I have several XML files that I wish to read attributes from. My main
Greetings. I have files that contains eleven fields in the file name. Each file
I have 3 files that are always producing merge conflicts when I am trying
I have files that I want only 'foo' and 'bar' left from split. dn
I have some files that contain logs of objects. Each file can store objects
I have >100 files that I need to merge, but for each file the
I have some files that need to be sorted by name, unfortunately I can't
I have some files that I would like to rename using regex and powershell,
I have some files that are uuencoded, and I need to decode them, using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.