Nyphel
16th April 2007, 14:40
Hi,
My application is a simple mail checker : it informs the user when he got mails.
The user may have many accounts, and my application display 1 QDialog for each account that got new mails.
Like I don't want to get many new frames in my taskbar, I don't want them to be visible inside. So, the constructor of the QDialog implementation class has a "parent object" parameter.
MyQdialog_impl(QWidget *parent = 0);
MyQdialog_impl::MyQdialog_impl(QWidget *parent = 0) {...}
In order to hide the QDialogs in the taskbar, I create them like this :
QDialog *dialog_mailchecker;
dialog_mailchecker = new QDialog();
dialog_mailchecker->hide();
for each account to be shown
{
MyQdialog_impl *messageTable;
messageTable= new MyQdialog_impl(dialog_mailchecker);
{...}
messageTable.show();
}
So all my messageTable are linked to a hidden QDialog and they don't appear in the task bar. That's well !
But now I've got a new functionnality in those tables : when my user click a message, I create a QProcess that calls FireFox (targetting the webmail). So FireFox is opened in front of the QDialogs... And like they aren't in the task bar, the user can't show/hide them easily.
Is it possible, at this moment, to force the QDialogs to be shown in the tasbar please ? :)
.
My application is a simple mail checker : it informs the user when he got mails.
The user may have many accounts, and my application display 1 QDialog for each account that got new mails.
Like I don't want to get many new frames in my taskbar, I don't want them to be visible inside. So, the constructor of the QDialog implementation class has a "parent object" parameter.
MyQdialog_impl(QWidget *parent = 0);
MyQdialog_impl::MyQdialog_impl(QWidget *parent = 0) {...}
In order to hide the QDialogs in the taskbar, I create them like this :
QDialog *dialog_mailchecker;
dialog_mailchecker = new QDialog();
dialog_mailchecker->hide();
for each account to be shown
{
MyQdialog_impl *messageTable;
messageTable= new MyQdialog_impl(dialog_mailchecker);
{...}
messageTable.show();
}
So all my messageTable are linked to a hidden QDialog and they don't appear in the task bar. That's well !
But now I've got a new functionnality in those tables : when my user click a message, I create a QProcess that calls FireFox (targetting the webmail). So FireFox is opened in front of the QDialogs... And like they aren't in the task bar, the user can't show/hide them easily.
Is it possible, at this moment, to force the QDialogs to be shown in the tasbar please ? :)
.