×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    23

    QT Console app - Hiding the application icon

    Hi,

    Have a QT Console app, which performs some background tasks. It works fine, isn't visible in the task bar but the app & icon (default icon) is shown in the application list.

    I remember there is a way to hide or make the app/icon invisible through some option in the .pro file. Could anyone pls throw some light

    Thnx

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: QT Console app - Hiding the application icon

    try this
    Code:
    CONFIG   += console
    CONFIG   -= app_bundle
    CONFIG   += no_icon

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    23

    Re: QT Console app - Hiding the application icon

    great, thanks... works perfect !! Launching this Qt console app from another QT application using QProcess doesnt work. However i could see i can launch other QT GUI app's using QProcess. Is there anything im missing here ? May be something more to add to the console pro file

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: QT Console app - Hiding the application icon

    QProcess will emit signal error() if it get fails.
    http://doc.qt.nokia.com/latest/qproc...cessError-enum

    Check what is the error case for you...

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    23

    Re: QT Console app - Hiding the application icon

    @savaj Its not hitting the processError slot. Not sure why !!

    May be console apps need command line args while launching ??

    like proc->start("cmd.exe /C myprog.exe") ;

    The above way doesnt work too ... Pretty confusing why launching console apps should be any different. Any inputs greatly appreciated

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    23

    Re: QT Console app - Hiding the application icon

    The error i get is QProcess::FailedToStart , if that would be of any help !!

  7. #7
    Registered User
    Join Date
    Mar 2008
    Posts
    23

    Re: QT Console app - Hiding the application icon

    A shared library needed by the qt console app wasnt installed ... works good now !! Thanks guys (Y)

Similar Threads

  1. how to change the application icon of Console Application?
    By s_mehdi76 in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-06-14, 06:23
  2. soem issues with hiding my app icon
    By kishore84 in forum Symbian C++
    Replies: 6
    Last Post: 2008-02-27, 13:53
  3. Hiding app icon/name from Phone's Menu??
    By chishti.hameed in forum Symbian User Interface
    Replies: 11
    Last Post: 2005-06-10, 09:55
  4. Hiding the application icon on Series 80
    By hesham.galal in forum Symbian C++
    Replies: 2
    Last Post: 2004-12-01, 05:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •