Bonjour,

Je n arrive pas à faire disparaitre la presence de nombreuses fenetres dans le taskbar du gestionnaire de fenetre.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Q_DECL_EXPORT int main(int argc, char *argv[])
{
 
    //QApplication::setGraphicsSystem("raster");  // Use "raster" for systems not supporting "openvg" or "opengl"
 
    QScopedPointer<QApplication> app(createApplication(argc, argv));
 
SysTrayIcon execSystray;
CPULoad execProcess;
CPUInfo execCPUinfo;
MemInfo execMem;
SENSORStemp execTemp;
HDDInfo execHdd;
GetNetInfo execNet;
MusicInfo execMusic;
PROCESSInfo execProcessus;
//execProcessus.start();
//execProcessus.thread()->currentThreadId();
//execProcessus.wait();
 
    QmlApplicationViewer viewerClock;
    viewerClock.setStyleSheet("background:transparent");   //remove background
    viewerClock.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    viewerClock.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    viewerClock.rootContext()->setContextProperty("loadsystray", &execSystray);
    viewerClock.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewerClock.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/WidgetClock.qml"));
    viewerClock.move(0, 20);
    viewerClock.showExpanded();
 
    QmlApplicationViewer viewerCpu;
    viewerCpu.setStyleSheet("background:transparent");   //remove background
    viewerCpu.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    viewerCpu.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    viewerCpu.rootContext()->setContextProperty("loadcpu", &execProcess);
    viewerCpu.rootContext()->setContextProperty("loadcpuinfo", &execCPUinfo);
    viewerCpu.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewerCpu.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/WidgetCpu.qml"));
    viewerCpu.move(0, 200);
    viewerCpu.show();
 
    QmlApplicationViewer viewerMem;
    viewerMem.setStyleSheet("background:transparent");   //remove background
    viewerMem.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    viewerMem.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    viewerMem.rootContext()->setContextProperty("loadmem", &execMem);
    viewerMem.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewerMem.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/WidgetMem.qml"));
    viewerMem.move(0, 380);
    viewerMem.showExpanded();
 
    QmlApplicationViewer viewerHdd;
    viewerHdd.setStyleSheet("background:transparent");   //remove background
    viewerHdd.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    viewerHdd.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    viewerHdd.rootContext()->setContextProperty("loadhdd", &execHdd);
    viewerHdd.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewerHdd.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/WidgetHdd.qml"));
    viewerHdd.move(0, 560);
    viewerHdd.showExpanded();
 
    QmlApplicationViewer viewerNet;
    viewerNet.setStyleSheet("background:transparent");   //remove background
    viewerNet.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    viewerNet.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    viewerNet.rootContext()->setContextProperty("loadnet", &execNet);
    viewerNet.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewerNet.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/WidgetNet.qml"));
    viewerNet.move(0, 740);
    viewerNet.showExpanded();
 
    QmlApplicationViewer listTest;
    listTest.setStyleSheet("background:transparent");   //remove background
    listTest.setAttribute(Qt::WA_TranslucentBackground); //background transparant
    listTest.setWindowFlags(Qt::FramelessWindowHint);  //remove borders
    listTest.rootContext()->setContextProperty("loadnet", &execNet);
    listTest.rootContext()->setContextProperty("loadtemp", &execTemp);
    listTest.rootContext()->setContextProperty("loadhdd", &execHdd);
    listTest.rootContext()->setContextProperty("loadcpuinfo", &execCPUinfo);
    listTest.rootContext()->setContextProperty("loadmusicinfo", &execMusic);
    listTest.rootContext()->setContextProperty("loadprocessus", &execProcessus);
    listTest.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    listTest.setMainQmlFile(QLatin1String("qml/conkycloneqml/content/ViewDrag.qml"));
//    viewerNetStat.move(20, 200);
    listTest.showExpanded();
 
    return app->exec();
}
Cela me cree de nombreuses petites fenetres indepandantes les une des autres, car je voulais pouvoir les positionner à ma guise sur le bureau.

Par contre je voudrais les faires disparaitres du taskbar manager du system d' exploitation.

Avec ceci j y arrive, mais ce n' est pas l' effet souhaité, je na sais plus les deplacer.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
listTest.setWindowFlags(Qt::X11BypassWindowManagerHint);
ou
listTest.setWindowFlags(Qt::SplashScreen);
comment pourrais je m' y prendre pour n' afficher plus que 1 ou 2 maximum dans le taskbar du system d' exploitation?

J' ai passé en revue Qt Namespace, mais je n' y arrive pas.

Cordialement.