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 6061967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:59:50+00:00 2026-05-23T08:59:50+00:00

I have a main window class built in Qt Designer and called Ui_MainWindow which

  • 0

I have a main window class built in Qt Designer and called Ui_MainWindow which has a publicly defined QProgressBar object called *downloadProgressBar. I also have a class called HttpGet, which is supposed to download a file from a url supplied by the user. There is a function called HttpGet :: updateReadProgress that is intended to update downloadProgressBar as the file is downloaded, which would require manipulation of the progress bar from within the function, but I unable to figure out how to go about this.

My assumption would be that I would include the relevant header file and then access the progress bar object via

Ui_MainWindow :: downloadProgressBar -> setValue()

but when I try to compile this code, I get the following error:

error: ‘downloadProgressBar’ is not a member of ‘Ui_MainWindow’

which tells me that I’ve misunderstood what it is I’m asking the compiler to do. Can someone please tell me how I should go about updating the progress bar from within HttpGet, or if that’s the wrong thing to do, can you please give me a better alternative?

  • 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-05-23T08:59:50+00:00Added an answer on May 23, 2026 at 8:59 am

    Ui_MainWindow is a class. you need object of that class to deal with members.
    Also, you should read C++ GUI Programming with Qt 4 (2nd Edition) before writing more code. it’s awailable in pdf around the web…

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

Sidebar

Related Questions

I have a file called hellowf.cs class MyFirstApp { static void Main() { System.Windows.Forms.MessageBox.Show(Hello,
I have a main window (#1) on my webpage from which I open a
i have a table called category in which i have main category ids and
I have a main window: public class MainPanel extends JFrame implements MouseListener { public
I have an Air application with a main window. I would like to have
I have a scenario. (Windows Forms, C#, .NET) There is a main form which
I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath
I have a main canvas 'blackboard' in a panel, this canvas has itself several
I have written a C++ application, which I built using g++. For the purposes
I have a KMainWindow: //file.h class MainWindow: public KMainWindow { public: MainWindow(QWidget *parent =

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.