Is it possible to tell the Qt MOC that I would like to declare the class and implement it in a single file rather than splitting them up into an .h and .cpp file?
Is it possible to tell the Qt MOC that I would like to declare the class and implement it in a single file rather than splitting them up into an .h and .cpp file?
Hi,
I install moc with port, but when try launche I get this error message.
$mocp
Running the server...
Trying JACK...
FATAL_ERROR: No valid sound driver
FATAL_ERROR: Server exited
any idea ?
Many thanks.
So I'm pretty new to Qt, and I've just inherited a project from someone else who is also new to Qt. He isn't around this week btw. We are using Visual Studio 2008, and have the latest version of Qt installed(4.6.2).
The project builds on my coworker's machine fine, and I can get the project from svn and build it directly. But under any other…
So I'm pretty new to Qt, and I've just inherited a project from someone else who is also new to Qt. He isn't around this week btw. We are using Visual Studio 2008, and have the latest version of Qt installed(4.6.2).
The project builds on my coworker's machine fine, and I can get the project from svn and build it directly. But under any other…
How can someone who joins an existing Microsoft Communicator chat see the history of what has gone before?
For example:
Larry: [describes problem]
Moe: [enhances problem]
Curly: We should ask Shemp
[Shemp joins]
Shemp: What's going on in this thread?
Is there any way for Shemp to see what Larry and Moe have already typed?
I have tried…
How can someone who joins an existing Microsoft Communicator chat see the history of what has gone before?
For example:
Larry: [describes problem]
Moe: [enhances problem]
Curly: We should ask Shemp
[Shemp joins]
Shemp: What's going on in this thread?
Is there any way for Shemp to see what Larry and Moe have already typed?
I have tried…
i'm using QT Creator 1.3.1 and trying to compile, but get this error...
please help me get rid of it
mingw32-make[1]: Leaving directory `C:/Documents and Settings/eyalk/My Documents/My QT Projects/XML'
mingw32-make: Leaving directory `C:/Documents and Settings/eyalk/My Documents/My QT Projects/XML'
'C:/Qt/2010.02.1/qt/bin\moc.exe' is not…
In order to keep my Qt project somewhat organized (using Qt Creator), I've got one .pro file and multiple .pri files. Just recently I added a class to one of my .pri files that has the same filename as a class that already existed in a separate .pri file.
The file structure and makefiles generated by qmake appear to be oblivious to the…
I am creating a class with custom slots in Qt:
class CustomEdit : public QTextEdit
{
Q_OBJECT
public:
CustomEdit(QWidget* parent);
public slots:
void onTextChanged ();
};
However, I'm getting thise linker error:
undefined reference to 'vtable for CustomEdit'
The documentation says:
if you get compiler errors…
This is a better-focused version of an earlier question that touches upon an entirely different subject from before.
I am working on a Cocoa Core Data application with multiple threads. There is a Song and Artist; every Song has an Artist relation. There is a delegate code file not cited here; it more or less looks like the template…
I'm trying to unit test a class that inherits QObject; the class itself is located up one level in my directory structure. When I build the unit test I get the standard unresolved errors if a class' MOC file cannot be found:
test.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall…
I have a garbage collected Cocoa application built on 10.5 frameworks. In an NSOperation In a loop I am quickly creating hundreds of NSManagedObjects. Frequently the creation of those NSManagedObejcts will crash with a exc_bad_access error.
for (offsetCount; offsetCount < [parsedData count]; offsetCount++)…
I'm building my first iOS app, which in theory should be pretty straightforward but I'm having difficulty making it sufficiently bulletproof for me to feel confident submitting it to the App Store.
Briefly, the main screen has a table view, upon selecting a row it segues to another table view that displays…
I created a tab bar application from the template and added a navigation controller to one of the tabs. I have already created this app from the navigation app template already and is working. The reason I am doing it this way is because I need to add a tab bar and thought it would be easier starting by…
I cannot find any clarification on this, so it may be a bug.
Problem is, I have a series of parent-child Managed Object Context's.
When I save on a child context the changes get pushed up to the parent, and I can fetch using a plain old NSFetchRequest.
However, if I rely on an…
I feel like this should be a no brainer, but I just can't seem to figure it out. I am running Ubuntu Server 10.04 as a virtual machine in VMWare Fusion. I am simply trying to get there to be some sound that comes out of my laptop speakers. I have installed Alsa and MOC (followed…
Assuming these objects...
class MyClass
{
int ID {get;set;}
string Name {get;set;}
List<MyOtherClass> Things {get;set;}
}
class MyOtherClass
{
int ID {get;set;}
string Value {get;set;}
}
How do I perform a LINQ to Entities Query, using a…
So, there have been several posts here about importing and saving data from an external data source into Core Data. Apple documents a reasonable pattern for this: "import and save on background thread, merge saved objects to main thread." All fine and good.
I have a…
I have the following code which seems to go on indefinitely until the app crashes. It seems to happen with the recursion in the datastructureFromManagedObject method. I suspect that this method:
1) looks at the first managed object and follows any relationship…
I have a method dedicated to finding an NSManagedObject ('company') using a supplied NSString and, if it's not found, creating a new one and returning it. As far as I know it's fully inited and the method works perfectly. That is, until the line after the…
I need to update the tableview as soon as the content is pushed in core data database.
for this
AppDelegate.m contains following code
NSManagedObjectContext *moc = [self managedObjectContext];
NSFetchRequest *request = [[NSFetchRequest alloc] init];
…
I'm trying to test for memory leaks in my iphone and I'm not having much luck getting rid of this one. Here is the code that is leaking.
- (id)initWithManagedObjectContext:(NSManagedObjectContext *)aMoc delegate:(id)aDelegate runSync:(BOOL)aRunSync {…
I have a class named Storage. Storage contains an arraylist of special objects called Products. Each product contains information such as name, price, etc. My code is as follows:
class Storage{
Product sprite = new Product("sprite",1.25,30);
…
Dobry den Pani a Panvé
Linux Ubuntu lepsi nové tu jemno cely Linuxubuntu 13,5 pogram sytem. Ptam se ano nové sytem moc chrany Ubuntu bude s mobil se jemnuje Liubuntu phone 13,9. Moc libi tu pogram lepsi noviky Liubuntu phone budeš sam sysem…