<SOLVED>Application with flag "Qt::FramelessWindowHint" did not display in application list in task manager



  • Hi guys,

    i created an app with a mainwindow in Win7, and i set the window flag to "Qt::FramelessWindowHint".
    after that ,i can't find my app in application list in task manager.
    i wanna use flag "Qt::FramelessWindowHint", and at the same time, i want to display my app in app list of task manager.
    i tried some solutions, but they didn't work.



  • Which solutions did you tried?
    Have you tried to create hidden MainWindow and then create your Window with FramelessWindowHint?



  • Hi,

    what's your meaning of "hidden MainWindow" ?

    [quote author="AcerExtensa" date="1348126524"]Which solutions did you tried?
    Have you tried to create hidden MainWindow and then create your Window with FramelessWindowHint?[/quote]



  • @int main(..)
    {
    QApplication app(...);
    QMainWindow w;
    w.setWindowTitle(...);
    w.setVisible(false);

    MyWidget widget();
    widget.show();

    return app.exec();
    }@



  • hi acer,

    i solved this problem.
    the reason is that, i forgot to set window title.
    thank u very much.



  • Glad i could help you. Please add "[SOLVED]" prefix, left to the topic subject. Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.