Hello. I am a beginner in Qt development. He studied the materials of the site but did not find any detailed recommendations or detailed examples. I started to use this environment for cross-design under Linux / C ++ and I find it difficult to advance. I need to connect the low-level C interface to the model generated by Qt Creator. Please tell me where you can read a sensible textbook? My past experience with Delphi for some reason did not help.

Thanks in advance.

  • What exactly is your problem? Formulate more precisely. - gbg
  • @gbg Good. The task is simple. I am doing a terminal simulator for the simplest controller. There is a "kitchen" OS. Instrument type GUI is strictly strictly only on C. For modeling and demonstration in environment C, the work of special equipment. How to make an event handler for this model without interfering with the code generated by Qt Creator? - Vyacheslav
  • you want "weird" - use the framework on pure C ++ to work with the code in C. The code in C is assembled with the code in C ++ using a simple extern С {} block in the header file. Just call your C functions from C ++ code and that's it. But the mixing of styles is a great nonsense, not carrying meaning. - gbg
  • one
    want GUI strictly on C - use GTK. There are no absolute advantages in writing GUI from C to C ++. Moreover, the GUI code in C will be an ugly deformity compared to the code in C ++, it will be more expensive to accompany it, and so on. The terminal emulator (aha, in a multitasking environment of not real time) is not a task where you need to count ticks. - gbg
  • one
    Of course, it is known that I did a spectran with a sampling frequency of 41 kHz and Fourier in real time at atmega8, starting with a prototype on a personal computer. - gbg

1 answer 1

Explanatory textbook - Schlee Qt 5.3. Professional C ++ programming

  • Thank. And for nothing, is there anything? - Vyacheslav
  • @ Vyacheslav, for nothing - doc.qt.io - Pavel Parshin
  • @PavelParshin Well, yes, behind the hangar. :) - Vyacheslav
  • one
    @ Vyacheslav - write a method-slot, then attach an event from a button to it. The code that generates qtcreator is exactly what you need in order to build an application's face and transmit events. There is nothing superfluous there. - gbg
  • one
    @ Vyacheslav, this is necessary in order to finish building C ++ to a convenient object-oriented language, in which writing an event-driven application looks natural. The fact that MOC does not produce a binary, but the source does not make it a preprocessor - this is the compiler. Moreover, the latest C ++ standards will soon allow moc to be thrown out. - gbg