Results 1 to 6 of 6

Thread: Error building chart model/view example

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Error building chart model/view example

    I found the link error. But, I'm not sure why it happened. It looks like when I ran rcc.exe it didn't generate the right routine name.

    It generated:
    int qInitResources()
    But, it should have generated:
    int qInitResources_chart()

    Any ideas why? I used the chart.qrc file "as is" from the distribution. Did I execute the command correctly?
    rcc.exe chart.qrc -o qrc_chart.cpp

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error building chart model/view example

    Maybe you have to use the -name parameter?

  3. The following user says thank you to jacek for this useful post:

    brcain (25th August 2006)

  4. #3
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Error building chart model/view example

    Quote Originally Posted by jacek
    Maybe you have to use the -name parameter?
    Yes indeed. Thank you. I don't remember reading about that.

    Here's the correct command:
    rcc.exe chart.qrc -name chart -o qrc_chart.cpp

Similar Threads

  1. Drag & drop with model/view (Qt4)
    By yogeshm02 in forum Qt Programming
    Replies: 16
    Last Post: 19th September 2011, 20:36
  2. MODEL/VIEW programming
    By mira in forum Newbie
    Replies: 3
    Last Post: 21st April 2006, 11:19

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
  •  
Qt is a trademark of The Qt Company.