Problems including QObject

Hello

I have a static library project, inside it... a TestObject.h file. I added the QtCore library via the method "Add library..." hoping it would solve my problem. Here's my class...

#ifndef TESTOBJECT_H_
#define TESTOBJECT_H_

#include 

class TestObject {

public:
    TestObject();
    virtual ~TestObject();
};

#endif /* TESTOBJECT_H_ */

It compiles, until I understand as above.

Here is the output of compiler error, what I am doing wrong?

In file included from/Applications/bbndk/target_10_1_0_4633/qnx6/usr/include/qt4/QtCore / QObject:1:0,.

Of... / SRC/TestObject.h:11.

Of... /SRC/TestObject.cpp:8:

/ Applications/bbndk/target_10_1_0_4633/qnx6/usr/include/qt4/QtCore/qobject.h:47:32: fatal error: QtCore/qobjectdefs.h: no such file or directory

compilation is complete.

Thank you

D

I managed to solve the problem by including the base directory of qt4 amongst my includes.

I hope this helps someone.

Tags: BlackBerry Developers

Similar Questions

  • Problem including < QtSensors/QAccelerometerFilter >

    Hello

    I am building a small application that allows the use of all available on the BB10 platform sensors. (just to see how they work, so I can use them as required by a school project). However, as soon as I add it to my code:

    #include

    I get a compilation error:

    The path location type Resource Description
    Fatal error: qmobilityglobal.h: no such file or directory ProblemReport line 45, external location: c:\bbndk\target_10_0_9_386\qnx6\usr\include\qt4\QtSensors\qsensor.h C/C++ problem

    I tried other understands but they all give errors of generation - either that, or include it cannot be resolved. This particular include is also used in this example: http://blackberry.github.com/Cascades-Samples/sensors-accelgame-src-accelerationsensor-hpp.html.

    Any tips or suggestions to solve this problem?

    Thank you

    Gerry

    I found the solution after doing some reading more: https://developer.blackberry.com/cascades/documentation/device_comm/sensors/.

    It is important to add:

  • Transform problems - including the width of the line dimensions - Illustrator CC 2014

    Hello

    I just do the illustrator cc update the previous version of illustrator cc 2014.


    The problem I have is that now the transformation Panel includs the width of the contour of the size.

    Previously, illustrator did not do that. I found it not do with rectangles, but does so with everything else. I could really do with this disabling. I know I could align stroke to inside, but it's boring to do abit oly works with closed forms. I use illustrator for projects that combine graphic production and creating paths for CNC, so they must be accurate.


    Thanks for any help


    screen grab.jpg

    You have 'Use Preview Bounds' selected in you preferences?

    Edit > Preferences > General >

    Take a look, and clear the check box if yes. :-)

  • Problems include PHP

    I am currently in the process of establishing a new Web site, and since I'm on several elements that return on every page - I decided to use PHP Include to this. Problem is that it works for my first pages - but once I go further into the details (read: later in the directories), it gets completely screwed up.

    Do not display my headers and footers - and my menu spry which included only PHP is also present in the text.

    Strangely enough, it works for my first pages, which are located in a directory to illustrate this further I quickly describe how my root folder looks in the direction of directories:

    ROOT:

    EN (it contains my pages in English)

    DK (it contains my Danish pages)

    includes (it contains my PHP include elements such as header, footer, menu)

    images

    Outside the internet, I copied the following code, to force the line to start the verification of the root of the folder:

    <? PHP

    include ($_SERVER ['DOCUMENT_ROOT'].) "" / includes/header.php '); "

    ? >

    It seemed to work perfectly for my main pages located directly in the EN directory, but once I am a couple of directories deeper in the folder EN - he gets mocked completely upwards. I'm sure that this issue has been raised several, several times and believe me, I looked around.

    I've read a lot about config.php - but by the way, my knowledge in the field of PHP is quite limited - this subject really seems to be Chinese to me. If anyone has a guide for Dummies out there - would be great. Otherwise, my question is this:

    How can I ensure my PHP includes show correctly and ACT properly (my menu) on the scale of the site?

    Thanks in advance for the help!

    Shrink still more my problem:

    "A file includes the file B, and B includes the C file; the include in B path should take into account the fact that A, non-B, is the current working directory. »

    This is exactly my problem. I need my PHP code to include the definition of my current working directory, and the encoding adds the relative necessary links if necessary. Recovering its definition can be done through "getcwd", I discovered?

    Is it possible to place all this coding in a single string that I can copy and paste for all my PHP includes? If so, should what line of code I use? If not, the issue the same, what line of code = should I use?

    I SOLVED MY PROBLEM

    Simply using absolute paths in my includes.

  • Problem, including an external as file

    I have a FLA 'Parent.fla' and a 'parent.as' file in the same directory on my laptop. I have a line of code in the first frame of the top layer in the FLA:
    #include "parent.as".

    When I have command + enter to test the movie, it does not work. I get a compilation error:
    Error opening include file parent.as: file not found.

    It works for me now. The only thing I can think is that this time, I created the file .as using Flash, and I think I remember earlier create the file .as BB Edit.

  • Set field at 2000 to 2003 domain level now, vista business workstations have problems, including Server 2008.

    Updated a single domain controller AD by adding a second AD (which was 2003) now dhcp rejects all the vista and win7 machines and will not allow the 2008 Server to work.  If I assign a dedicated IP, the function of workstations (several services still not start), but the server can ping and dns to resolve names but network location service does not start.

    http://TechNet.Microsoft.com/en-us/WindowsServer/bb430837.aspx

    They will help you with your questions in Windows Server communities at the above address.

    See you soon. Mick Murphy - Microsoft partner

  • RMAN backup problems, including a first?

    Oracle 11g on Windows 2008Std that I inherited. He has a backup nightly in Ent Mgr job, backup to disk, Oracle-suggested, the script:
    allocate channels oem_disk_backup device type of disk.
    retrieve the copy of the database with the tag ' ORA\$ OEM_LEVEL_0 ';
    extra strength 1 cumulative backup copies = 1 to retrieve the copy with the tag database "ORA\$ OEM_LEVEL_0";

    The backup fails every night with log:
    allocate channels oem_disk_backup device type of disk.
    recover
    allocated channel: oem_disk_backup

    channel oem_disk_backup: SID = 154 type device = DISK
    From recover to 8 July 10

    Finished recover to 8 July 10
    No copy of the datafile 5 found for recover
    No copy of the datafile 4 found for recover
    No copy of the datafile 3 found for recover
    No copy of the datafile 2 found for recover
    No copy of the datafile 1 found to recover
    From backup 8 July 10
    Enter a file name 00002 = C:\ORACLE\ORADATA\UC4\UC4\SYSAUX01 = datafile number. DBF
    Enter a number of file datafile = 00001 name = C:\ORACLE\ORADATA\UC4\UC4\SYSTEM01. DBF
    channel oem_disk_backup: specifying datafile (s) in the backup set
    channel oem_disk_backup: from backup set incremental level 1 datafile
    channel oem_disk_backup: starting piece 1 to 8 July 10
    Enter a number of file datafile = 00004 name = C:\ORACLE\ORADATA\UC4\UC4\USERS01. DBF
    Enter a number of file datafile = 00003 name = C:\ORACLE\ORADATA\UC4\UC4\UNDOTBS01. DBF
    Enter a number of file datafile = 00005 name = C:\ORACLE\ORADATA\UC4\UC4\APPWORX1

    ORA-19809: limit exceeded for file recovery
    ORA-19804: cannot retrieve 52428800 bytes of 2147483648 limit disk space

    I see the error of space limit. The database is defined with the flash_recovery_area 2 GB. So I should just expand the flash_recovery_area to make the backup job. BUT the real puzzle before I make changes, the database is in NOARCHIVELOG mode. What I find in the books say do not incremental backups in NOARCHIVELOG mode. and do not NOARCHIVELOG unless worry very much to be able to recover your data. So, not being able to ask the guy who created this, "why is it NOARCHIVELOG, especially when the value for incremental backups, I put these here:
    1. go to ARCHIVELOG?
    2. enlarge the flash_recovery_area to get these backups, first working?

    You can make incremental backups in noarchivelog mode - it's just that the database must be in editing mode. But I agree - except when the data is not important (and if you take backups, then it seems to be important) I have the database in archivelog mode.

  • Power Macintosh g3 in a Beige boot problem

    My 1998 Power Macintosh G3 all in one does not start. It started yesterday, but now when I press the key on the keyboard, nothing happens. I opened the back and nothing seemed wrong, but the battery was a bit dusty.

    What should I do?

    Also, if I got this thing working again, how do you think I could sell this thing, with a keyboard and a mouse?

    Thank you!

    Have you checked the voltage of the battery with a multimeter? With some Macintosh models, a low battery voltage may lead to unexpected problems, including production difficulties.

  • After years of use without problem with Thunderbird, 10 days ago was the end of it: all the types of errors that IntelliAtlantic has finally admitted that they can fix. Can you?

    they can solve the problem. After agreeing to pay their fees, they submitted a 'Service contract' and tried for three 3 consecutive days do healthy Thunderbird again - no success! After the creation of an e-mail message, it could no longer sent because the small box 'send' had disappeared. They fixed that, and after clicking on the button "Send" a message to 'Confirm' strange appeared:
    "There was a problem, including the file:///C:/DOCUME~1/ADM/N/~/LOCALS~1/Temp/nsemail.htlm file in the message. You want to continue to send the message without this file? "Available options: /OK/ and /Cancel/
    Lat night, after dialing a msg eMail with 2 attachments, after clicking on "OK", the message has been sent, but without the part of text - only 2 attachments.
    Without the help from you, I would be forced to seek another provider of Internet e-mail which I hate to do. I look forward to your help on my eMail < [email protected] >. or 843/689-5040. Thank you! Rolf Zenker

    What is your anti-virus software?

  • Thunderbird seems to be corrupted, with a wide range of problems (e-mail folder does not open it, names of the attachments not displayed,...) CAUSE: McAfee Antivirus

    Problems include:

    • By clicking on an e-mail folder does not open it - open in new tab works
    • Names of the attachments are not displayed. Clinkg on the trombone does not open them. "Open all the ' works
    • Sometimes, if I click on an email in the message (?), disappeafrs message pane, and then as I move the cursor to the bottom of the list, they all disappear

    I have restored my pc (Win 8), performed drive controls, run Malwarebytes and virus checks and found nothing.
    I've uninstalled and reinstalled TB several times without success.

    Stuck!

    • First of all I would like to get rid of McAffe. ALTOGETHER. Personally I don't like, but mostly because that its been the center of TB problems.
    • Then download and use MozBackup to save your settings.
    • Copy %appdata%\thunderbird\profiles somewhere for additional security.
    • Remove the data (% appdata%\thunderbird) and tuberculosis
    • Mozbackup allows you to import your settings.
  • iOS 9.33 charger problem

    Has anyone discovered that their formerly work cables and taken charge no longer work after update to 9.33?

    < published by host >

    Hello

    Apple recommends to use only genuine Apple Lightning USB cables or third party that Apple has certified under the program of the IFM.

    You are using counterfeit or non-certified third-party cables may cause problems including:

    • Your iPhone can not load correctly.
    • Your iPhone can not synchronize correctly.
    • Your iPhone could be damaged.
    • The cable can be more easily damaged.

    Authentic Apple Lightning to USB cables have some passages and a serial number printed on them.

    Certified cables come with the logo ' Made for iPod/iPhone/iPad "on their packaging.

    Apple also recommends using genuine Apple's USB adapters.

    Also note that the Apple warranty does not cover damage caused by the use of your iPhone with a third-party product that does not meet the specifications of Apple.

    More information:

    Identify the fakes or not certified Lightning - Apple Support connector accessories

  • What is the problem with my phone?

    Hello

    Just this afternoon, I started noticing that verification does not work for some things.  For example, I can not connect in my Apple ID on my iPhone.  It is said that "Audit Failed."  Also, when I enter almost all sites, it says that the server cannot be identified.  There are a few other strange things related to networking does not.  I have tried to reset my network settings, restart my phone and delete the data of my history and Web site.  It is not yet fixed.  Help, please.

    Note: Some of these other network problems include websites displaying raw html-basic as websites without javascript fancy stuff and whatnot.  He also says, for some of my apps that I'm offline when I am connected to wifi.  This problem is really strange.

    Contact Apple for support and service - Apple Support

  • Power Mac G5 power problems...

    Hello, on a quest to find a G5 computer, I found an early 2005 Power Mac G5 (2x2.7GHz). The first time I plugged it in and turned on, it works beautifully. The second time, I pressed the power button and heard a loud noise from the power supply. I replaced and this is what is happening now:

    When I plug the power cable in, there is a small clicking noise about a second after plugging in, and the power led on the front of the machine flashes for the click. However, it does not at all depend on when I press the power button. When I unplug the cable, it makes the same noise about a second after I unplug the unit. I see a pale glow of the light output after unplugging it.

    Anyone have any suggestions to solve this problem? It is part of a collection, that's why I want to do operational.

    There may be defective capacitors or other power supply problems, including

    overheating in the dust inside the power supply or air channels. And

    If the device is cooled by liquid, other things may be involved.

    Since all the PowerMac G5 power supplies are considered to be custom,.

    to get a good replacement is a way hoped to improve the situation.

    Unlikely as is, actually an inexpensive job.

    Have you tried a SMC power management unit reset? Or reset PRAM?

    • How to reset the SMU on a Power Mac G5 (late 2004) or Power Mac G5 (late 2005) - Apple is supported

    To reset NVRAM (PRAM) see:

    • How to reset the NVRAM on your Mac - Apple Support

    Several links appear in the result of this research; some look promising:

    https://DuckDuckGo.com/?q=Troubleshooting + G5 + PowerMac + power + supplies& t = ffsb & AI = web

    I read about the noise, the PowerMac G5 can do when some power components

    fails; Troubleshooting is involved. Somewhere I had a link to a source for official PDF
    REPAIR, download for offline use. -I do not see if I can locate the item...

    Apple Power Mac G5 (early 2005) manual .pdf

    Apple Power Mac G5 (late 2005) manual .pdf

    Apple Power Mac manual G5.pdf

    Good luck!

  • Problem with the password suddenly failing to authenticate with MSN

    Hello. I use Thunderbird version 24.5.0. on a Windows Vista operating system.
    I use a pop framework to connect to my email.

    My problem is when I try to check my e-mail MSN.com of Thunderbird account, I get the error message:

    "Sending of password did not succeed. Mail server pop3.live.com responded: authentication failed"
    

    This just started happening earlier today after having worked well for a very long time. I tried a number of things to solve this problem, including empty them the saved passwords, then reset my password on MSN and then to try the new password and nothing did. If I connect directly from the web browser on e-mail MSN account, it works fine. As far as I can see the password and user name that matches the full email address is entered correctly. Thanks for any help!

    OK I solved the problem.

    I looked through all the account settings hotmail/msn and found the so-called step 2 audit was active on the account. I do not remember to activate but I disabled it and everything works fine now.

    Here is some info on step 2 check and mail apps:

    http://Windows.Microsoft.com/en-CA/Windows/two-step-verification-FAQ

  • P1C61EA #ABZ: problem Audio (driver?)

    Hi, yesterday I updated to W10 anniversary. After that, my PC has a lot of audio problems, include the bass too metallic. So after reading in this forum I've updated the driver (sp74867), but doesn't my audio control (F6 key on the keyboard) and the volume is too low. When I restart my laptop updated driver disappears, with the previous one, with all the problems.

    I also tried, without success, the Windows troubleshooting tool, but nothing.

    What can I do?

    Thanks to advice.

    Andrea

    Hello

    Try download and install the package of audio software on the following link.

    http://ftp.HP.com/pub/SoftPaq/sp77501-78000/sp77787.exe

    Kind regards

    DP - K

Maybe you are looking for

  • Tecra A11-19th - touchpad driver for Win 10

    Anyone know it if there is a driver for this model of Toshiba touchpad and when can we find? If there is not, is there a chance that it will be provided?

  • Generation of reports in executable files

    By using LabVIEW 2012 SP1, I created a vi that opens an Excel file and puts a string of data (time stamp and a bit of data).  He travels once per second and adds the file very well on my laptop.  My problem is that when I create an executable file, t

  • 4620 HP faxes sent with the cover sheet and scanned attachments are stored?

    I have a wireless HP 4620 Officejet A-I-O on Windows 7.  I use the software to send a fax, adding a page of coverage and analysis of the attachments.  Once the fax is sent, there is a history of the drive, but that's all.  Are the real faxed pages sa

  • HP deskjet 3520: black ink does not print

    My HP deskjet printer that is 2 months warranty, that I recently bought a new HP cartridges for now will not print black (other colors are all very well).If have spent hours and hours trying to solve this problem, following all the advice on this for

  • Windows 32-bit and 64-bit systems

    My computer shows windows 7 home premium, 32-bit and 64-bit as operating system.  I seem to be processing everthing twice or two systems simultaneously. It seems everything I try to run takes a long time to process.  Can I safely delete or disable 32