How to make Qt Progressbar revisible after hiding? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How do I “Add Existing Item” an entire directory structure in Visual Studio?How to run Visual Studio post-build events for debug build onlyHow do I add an existing directory tree to a project in Visual Studio?How do you count the lines of code in a Visual Studio solution?How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Custom Drawable for ProgressBar/ProgressDialogHow do you auto format code in Visual Studio?QWidget created with QtDesigner is not visible when added to QToolBarQt QNetworkRequest hang, but I believe I'm in an event loopHow to Create a circular progressbar in Android which rotates on it?
Is there such thing as an Availability Group failover trigger?
Do wooden building fires get hotter than 600°C?
How does the math work when buying airline miles?
What is the meaning of the simile “quick as silk”?
Can anything be seen from the center of the Boötes void? How dark would it be?
How to answer "Have you ever been terminated?"
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
How do pianists reach extremely loud dynamics?
How to Make a Beautiful Stacked 3D Plot
Can you use the Shield Master feat to shove someone before you make an attack by using a Readied action?
Is safe to use va_start macro with this as parameter?
Why are there no cargo aircraft with "flying wing" design?
Did MS DOS itself ever use blinking text?
Is grep documentation wrong?
Is "Reachable Object" really an NP-complete problem?
Why didn't Eitri join the fight?
Do I really need recursive chmod to restrict access to a folder?
Is it fair for a professor to grade us on the possession of past papers?
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How to tell that you are a giant?
What do you call the main part of a joke?
How to compare two different files line by line in unix?
How can I use the Python library networkx from Mathematica?
old style "caution" boxes
How to make Qt Progressbar revisible after hiding?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How do I “Add Existing Item” an entire directory structure in Visual Studio?How to run Visual Studio post-build events for debug build onlyHow do I add an existing directory tree to a project in Visual Studio?How do you count the lines of code in a Visual Studio solution?How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Custom Drawable for ProgressBar/ProgressDialogHow do you auto format code in Visual Studio?QWidget created with QtDesigner is not visible when added to QToolBarQt QNetworkRequest hang, but I believe I'm in an event loopHow to Create a circular progressbar in Android which rotates on it?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
i tried different solutions from different threads, but I can't manage making a qt progress bar revisible.
What am I doing?
In the constructor of my window i say:
ui->progressBar_Status->hide();
in a callBack method of a button (which will be executed when the klick is released) i do:
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
I also tried different combinations as: only calling show instead of setVisible(true) and show(). I also tried saying setHidden(false), but i do not manage making this progress bar revisible again.
How can i fix this?
EDIT:
Constructor:
ILoggedTagWindow::ILoggedTagWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ILoggedTagWindow)
ui->setupUi(this);
ui->progressBar_Status->hide();
ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); //emits the customContextMenuRequested() signal
//when user requested a context menu on the widget.
connect(ui->tableView, &QTableView::customContextMenuRequested, this, &ILoggedTagWindow::onCustomContextMenuTable);
Callback Method:
void ILoggedTagWindow::on_pb_doQuery_released()
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
ui->label_Status->setText("Processing...");
QString generalErrorMessage "Error: Error while trying to setup call for tags. Check TraceViewer." ;
.....
visual-studio qt progress-bar qtwidgets
|
show 3 more comments
i tried different solutions from different threads, but I can't manage making a qt progress bar revisible.
What am I doing?
In the constructor of my window i say:
ui->progressBar_Status->hide();
in a callBack method of a button (which will be executed when the klick is released) i do:
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
I also tried different combinations as: only calling show instead of setVisible(true) and show(). I also tried saying setHidden(false), but i do not manage making this progress bar revisible again.
How can i fix this?
EDIT:
Constructor:
ILoggedTagWindow::ILoggedTagWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ILoggedTagWindow)
ui->setupUi(this);
ui->progressBar_Status->hide();
ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); //emits the customContextMenuRequested() signal
//when user requested a context menu on the widget.
connect(ui->tableView, &QTableView::customContextMenuRequested, this, &ILoggedTagWindow::onCustomContextMenuTable);
Callback Method:
void ILoggedTagWindow::on_pb_doQuery_released()
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
ui->label_Status->setText("Processing...");
QString generalErrorMessage "Error: Error while trying to setup call for tags. Check TraceViewer." ;
.....
visual-studio qt progress-bar qtwidgets
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55
|
show 3 more comments
i tried different solutions from different threads, but I can't manage making a qt progress bar revisible.
What am I doing?
In the constructor of my window i say:
ui->progressBar_Status->hide();
in a callBack method of a button (which will be executed when the klick is released) i do:
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
I also tried different combinations as: only calling show instead of setVisible(true) and show(). I also tried saying setHidden(false), but i do not manage making this progress bar revisible again.
How can i fix this?
EDIT:
Constructor:
ILoggedTagWindow::ILoggedTagWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ILoggedTagWindow)
ui->setupUi(this);
ui->progressBar_Status->hide();
ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); //emits the customContextMenuRequested() signal
//when user requested a context menu on the widget.
connect(ui->tableView, &QTableView::customContextMenuRequested, this, &ILoggedTagWindow::onCustomContextMenuTable);
Callback Method:
void ILoggedTagWindow::on_pb_doQuery_released()
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
ui->label_Status->setText("Processing...");
QString generalErrorMessage "Error: Error while trying to setup call for tags. Check TraceViewer." ;
.....
visual-studio qt progress-bar qtwidgets
i tried different solutions from different threads, but I can't manage making a qt progress bar revisible.
What am I doing?
In the constructor of my window i say:
ui->progressBar_Status->hide();
in a callBack method of a button (which will be executed when the klick is released) i do:
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
I also tried different combinations as: only calling show instead of setVisible(true) and show(). I also tried saying setHidden(false), but i do not manage making this progress bar revisible again.
How can i fix this?
EDIT:
Constructor:
ILoggedTagWindow::ILoggedTagWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ILoggedTagWindow)
ui->setupUi(this);
ui->progressBar_Status->hide();
ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); //emits the customContextMenuRequested() signal
//when user requested a context menu on the widget.
connect(ui->tableView, &QTableView::customContextMenuRequested, this, &ILoggedTagWindow::onCustomContextMenuTable);
Callback Method:
void ILoggedTagWindow::on_pb_doQuery_released()
if (ui->progressBar_Status->isHidden())
ui->progressBar_Status->setVisible(true);
ui->progressBar_Status->show();
ui->label_Status->setText("Processing...");
QString generalErrorMessage "Error: Error while trying to setup call for tags. Check TraceViewer." ;
.....
visual-studio qt progress-bar qtwidgets
visual-studio qt progress-bar qtwidgets
edited Mar 22 at 9:55
Gino Pensuni
asked Mar 22 at 9:38
Gino PensuniGino Pensuni
100112
100112
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55
|
show 3 more comments
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296698%2fhow-to-make-qt-progressbar-revisible-after-hiding%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296698%2fhow-to-make-qt-progressbar-revisible-after-hiding%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The code so far looks fine. Please provide a Minimal, Complete, and Verifiable example that reproduces your problem.
– TrebledJ
Mar 22 at 9:43
Maybe the progress bar appears, but behind the main window? It isn't a modal dialog, right?
– vahancho
Mar 22 at 9:46
I will add code Snippets @TrebledJ
– Gino Pensuni
Mar 22 at 9:47
I dont think that is modal. I'm not quite an qt Expert, how can i check this @vahancho?
– Gino Pensuni
Mar 22 at 9:48
Edited the post @TrebledJ
– Gino Pensuni
Mar 22 at 9:55