qt-creator

How to run a timer inside a QThread?

六眼飞鱼酱① 提交于 2019-12-18 12:38:47
问题 I would like to run a timer inside a QThread. I have written some code in which i am getting some error during the run time. Please guide me into the right direction. What am I doing wrong? (Parent is QThread(0x1498d10), parent's thread is QThread(0x11272b0), current thread is QThread(0x1498d10) mainwindow.h //main .h file #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "mythread.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT

Qt creator Adding external library (still: Cannot open include file: 'GL/glew.h')

好久不见. 提交于 2019-12-18 12:29:43
问题 I followed the instruction: In the Projects pane, open the project file (.pro). Right-click in the code editor to open the context menu and select Add Library.... Then the following lines were added into the pro file: win32:CONFIG(release, debug|release): LIBS += -L$$PWD/D:/OpenGL/glew-1.5.4/lib/ -lglew32 else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/D:/OpenGL/glew-1.5.4/lib/ -lglew32d INCLUDEPATH += $$PWD/D:/OpenGL/glew-1.5.4/include DEPENDPATH += $$PWD/D:/OpenGL/glew-1.5.4

Using automatic documentation of my own function with Qt Creator?

孤街浪徒 提交于 2019-12-18 11:27:00
问题 I was using Qt Creator and I decided I wanted to document a function I had written so I positioned my cursor above my function definition and typed /**<ENTER> like so: /**<ENTER> void MyClass::myFunction(int myArg) { ... Qt Creator auto-expanded that comment: /** * @brief MyClass::myFunction * @param myArg */ void MyClass::myFunction(int myArg) { ... What is this? Where is it documented? Can I use this to generate my own Qt Assistant qch help files or something? 回答1: It should be documented

Compile a Qt project from command Line

喜欢而已 提交于 2019-12-18 10:35:11
问题 I am developing a application using Qt, the C++ library/framework. Using the QT-Creator I can compile my project just fine and the build directory generates the desired executable files just fine. However, I am trying to automate my asks and using Apache ANT. But I am running into the following issues. Here is the output from the command line: build.mac.64: [echo] Building for Mac [echo] Updating destination path [exec] Project WARNING: No .qmake.cache is present. This significantly slows

QtCreator and TBB under Windows

穿精又带淫゛_ 提交于 2019-12-18 09:45:15
问题 I have compiled TBB from source using Mingw following the comment #5 in this post: http://software.intel.com/en-us/forums/topic/291331. That went ok. When I try to use the new TBB library in a QtCreator project, I end with this errors (ignore the warning messages): http://postimage.org/image/yrrecugix/ Here's the sample code I tried (I omit the non-tbb code): #include "tbb/task_scheduler_init.h" int main() { tbb::task_scheduler_init init; /// more things. } And here's the .pro file: TEMPLATE

QT Menu how to create a new window?

有些话、适合烂在心里 提交于 2019-12-18 09:43:29
问题 I am working in QT Creator. I would like to mention that I am beginner in this software. I succeeded to create a menu that has: Edit and Open. I would like to create a new window when " Open " from menu bar is clicked. Till now I succeeded to print a message in QMessageBox when I press Open. What is the code for linking Open clicked with a new window? Is it possible to somehow drag and drop a new window in mainwindow.ui and than link it with Open on action Open_activated()? THX . Appreciate P

qtcreator Qt_5 not found

房东的猫 提交于 2019-12-18 09:01:51
问题 Hello I have a problem starting qtcreator under Ubuntu 16.04. The reported error is: qtcreator: /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5: version `Qt_5_PRIVATE_API' not found (required by /usr/lib/libQt5Widgets.so.5) qtcreator: /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5: version `Qt_5' not found (required by /usr/lib/libQt5Widgets.so.5) I tried different solutions from other threads but can't make it. Can anyone help or explain what exactly the problem is

Qt Creator: add Qt module to project

六月ゝ 毕业季﹏ 提交于 2019-12-18 09:01:11
问题 So when I create a new Qt project inside Qt Creator I'm only asked for some simple details like location of the project, build targets, the main window class name (along with header, source and form file) and at the enda choice to add it to version control. After I create the project I'm only given the qt core and gui modules. My question is how do I add other modules (such as network or opengl). I've looked and looked, yet I cannot find anything on how to add other Qt modules easily. I know

Include path for adding an external library in Qt Creator?

家住魔仙堡 提交于 2019-12-18 07:02:07
问题 I am trying to include the pre-compiled (MSVC2012) OpenCV static libraries into Qt Creator but I am unsure what the include path is about as per this image: Here is an image of the precompiled OpenCV files that I downloaded: There are 3 directories: bin contains DLLs, lib contains small lib files (2 kb) so that QtCreator can understand the DLLs, and staticlib containts large lib files (1 mb) which are the static libraries that I'm trying to link against. The library file/path is something

Include path for adding an external library in Qt Creator?

人走茶凉 提交于 2019-12-18 07:01:56
问题 I am trying to include the pre-compiled (MSVC2012) OpenCV static libraries into Qt Creator but I am unsure what the include path is about as per this image: Here is an image of the precompiled OpenCV files that I downloaded: There are 3 directories: bin contains DLLs, lib contains small lib files (2 kb) so that QtCreator can understand the DLLs, and staticlib containts large lib files (1 mb) which are the static libraries that I'm trying to link against. The library file/path is something