Results 1 to 2 of 2

Thread: Problem with QApplication::applicationVersion()

  1. #1
    Join Date
    Jul 2009
    Location
    Switzerland
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem with QApplication::applicationVersion()

    The function QApplication::applicationVersion() gives me an emty QString back, but when i test QApplication::applicationPath(), the right path comes back.
    The version is in a .rc-File in the same folder.

    If i set a applicationVersion ( QApplication::setAppllicationVersion(QString version)) the function gives me this version.

    But i need the Version from the .rc-File.
    The right version is also in the .exe properties.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with QApplication::applicationVersion()

    playing with resources can be done with WinApi. search msdn and you will find how to use a resource.

Similar Threads

  1. Replies: 1
    Last Post: 23rd April 2009, 09:05
  2. Replies: 19
    Last Post: 3rd April 2009, 23:17
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. Problem with receiving events from QDateEdit
    By gunhelstr in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 11:21
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.