Results 1 to 2 of 2

Thread: what may be the error in registering the resource in the following code?

  1. #1
    Join Date
    Aug 2011
    Location
    Bangalore, India
    Posts
    23
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default what may be the error in registering the resource in the following code?

    I have created an text.rcc file.
    I am using the following code to register the file
    Qt Code:
    1. qdebug() << QResource::registerResource("text.rcc");
    To copy to clipboard, switch view to plain text mode 
    In the above code the qdebug() output is showing false.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: what may be the error in registering the resource in the following code?

    Maybe the file cannot be located, try with absolute path.

Similar Threads

  1. Registering QGraphicsItem Movement (Drag)
    By Polnareff in forum Newbie
    Replies: 5
    Last Post: 27th May 2010, 13:41
  2. Error when loading QIcon from plugin resource on mac
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 12th February 2010, 01:29
  3. resource file name problem in generated code
    By acpRobert in forum Qt Tools
    Replies: 0
    Last Post: 26th April 2009, 02:06
  4. QtHelp Module - registering compressed help file gives error
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2008, 14:14
  5. Registering classe in QMetaType
    By rcintra in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2007, 22:26

Tags for this Thread

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.