add icon on task bar on linux platform
-
i wanna add a customize icon on my applicaion's task bar.
but, on linux platform, the method setWindowsIcons does not make sense. -
@chris_rookie said in add icon on task bar on linux platform:
the method setWindowsIcons does not make sense
What does this mean? Doesn't work? You won't use it, or something else? Please show us some code.
-
![alt text]( image url)
i did like this, on linux platform, but it display as this。it's gnome desktop
![alt text]( image url) -
the second image is task bar
-
@Christian-Ehrlicher
Hi,
I have post three pictures to show how I did it. Is there some useful infomation in it? -
Do you really set the icon for the main window?
/edit: and are you sure the image is found when you run your executable? -
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{ui->setupUi(this); setWindowIcon(QIcon(":/image/logo.ico")); ui->tabWidget->setTabPosition(QTabWidget::West); ui->tabWidget->tabBar()->setStyle(new CustomTabStyle);
}
I did like this, it works.
before, I set this in Ui form,that's wrong.Thank you.