QT中为什么Start Debugging和RUN运行会有区别呢?

xsnbzj 2011-09-17 02:21:20
我下了个程序想自己学习,刚用QT平台!我的是串口通信的软件,在点击RUN运行时,会有个像DOS的CMD界面弹出,还有主界面也出来!但是点击Start Debugging时CMD界面就不会出现,不知道在哪里可以屏蔽掉这个cmd界面!或语句什么的!

有没有相关的实用的书籍也介绍下吧,谢谢!
...全文
452 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xsnbzj 2011-09-20
  • 打赏
  • 举报
回复
有没有人知道QT在windows 下,哪里设置MinGW?

我想这样的设置:

-Wl,-subsystem,console修改为

-Wl,-subsystem,windows

xsnbzj 2011-09-19
  • 打赏
  • 举报
回复
谢谢!楼上的兄弟姐妹!我只是个人觉得QT运用起来感觉比较容易理解!

BCB控件是比较强大!界面性的东西感觉没有QT的好!

先谢了!能否教下小弟,如何解决下我的问题?

TEMPLATE = app
TARGET = PowerMClient
DEPENDPATH += .
QMAKE_LIBDIR += ../build
QT += network
CONFIG += qt thread warn_on qtestlib
CONFIG -= console

HEADERS = plotter.h \
mainwindow.h \
QespTest.h \
win_qextserialport.h \
qextserialport.h \
qextserialbase.h \
posix_qextserialport.h \
curvepanel.h \
itemdelegator.h \
nationstandard.h \
projectdialog.h \
gridonoff.h \
cloadbox.h \
tcmessagesender.h \
tcmessagerecv.h \
chgpass.h \
logindlg.h \
lconfig.h \
cloadconn.h \
chtview.h \
plotterCylinder.h \
cloadset.h \
plotterCylinderYr.h \
tcsearch.h \
combodevice.h
SOURCES = main.cpp \
plotter.cpp \
mainwindow.cpp \
QespTest.cpp \
curvepanel.cpp \
itemdelegator.cpp \
nationstandard.cpp \
projectdialog.cpp \
gridonoff.cpp \
cloadbox.cpp \
tcmessagesender.cpp \
tcmessagerecv.cpp \
chgpass.cpp \
logindlg.cpp \
lconfig.cpp \
cloadconn.cpp \
chtview.cpp \
plotterCylinder.cpp \
cloadset.cpp \
plotterCylinderYr.cpp \
tcsearch.cpp
RESOURCES = plotterlcd.qrc

LIBS += -lqextserialport

unix:DEFINES = _TTY_POSIX_
win32:DEFINES = _TTY_WIN_ QWT_DLL QT_DLL

TRANSLATIONS += l8n.ts l8n_en.ts l8n_zh.ts

RC_FILE = myapp.rc

OTHER_FILES += \
Logolang.ico
这是.pro部分的源码!
xsnbzj 2011-09-19
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 jinjineric 的回复:]
如果是在vs2008下面,可以修改工程的property-》linker-》system——》subsystem改为windows
[/Quote]

我用的QT4,不知道您说的VS2008在哪里!我在里面有看到mingw但是找不到在哪里,修改
jinjineric 2011-09-19
  • 打赏
  • 举报
回复
如果是在vs2008下面,可以修改工程的property-》linker-》system——》subsystem改为windows
xsnbzj 2011-09-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zhu_xz 的回复:]
这个是Windows下的问题......

你在.pro文件里面:
CONFIG -= console
[/Quote]

这句我已经加了,但是还是存在!

我在QTESTLIB.PRF也修改了,也起不到效果!
念茜 2011-09-18
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 dext 的回复:]

Windows 下 还是BCB强吧~ 一大堆 第三方控件 DevExpress 什么的。
Qt 最好的就是 跨平台特性吧。

引用 1 楼 xsnbzj 的回复:

自己先顶个!~~~程序中运用了qextserialport.dll,初次QT接触感觉功能很强大,比BCB舒服多了!
[/Quote]

顶,倘若锁定平台为windows,那Qt不具备特大的优势
dext 2011-09-18
  • 打赏
  • 举报
回复
Windows 下 还是BCB强吧~ 一大堆 第三方控件 DevExpress 什么的。
Qt 最好的就是 跨平台特性吧。

[Quote=引用 1 楼 xsnbzj 的回复:]

自己先顶个!~~~程序中运用了qextserialport.dll,初次QT接触感觉功能很强大,比BCB舒服多了!
[/Quote]
zhu_xz 2011-09-17
  • 打赏
  • 举报
回复
这个是Windows下的问题......

你在.pro文件里面:
CONFIG -= console
xsnbzj 2011-09-17
  • 打赏
  • 举报
回复
自己先顶个!~~~程序中运用了qextserialport.dll,初次QT接触感觉功能很强大,比BCB舒服多了!
README for the eric5 IDE Installation Installing eric5 is a simple process. Just execute the install.py script (type python install.py -h for some help). Please note that the installation has to be performed using the administrators account (i.e. root on linux). This installs a wrapper script in the standard executable directory (default: /usr/local/bin on linux) called eric5. If you want to uninstall the package just execute the uninstall script. This gets rid of all installed files. In this case please send an email to the below mentioned address and tell me your reason. This might give me a hint on how to improve eric5. If the required packages (Qt4, QScintilla2, sip and PyQt4) are not installed, please get them and install them in the following order (order is important). 1. Install Qt4 (from Nokia) 2. Build and install QScintilla2 (from Riverbank Computing) 3. Build and install sip (from Riverbank Computing) 4. Build and install PyQt4 (from Riverbank Computing) 5. Build and install QScintilla2 Python bindings (part of the QScintilla2 package) 6. Install eric5 If you want to use the interfaces to other supported software packages, you may install them in any order and at any time. Please note, that the QScintilla2 Python bindings have to be rebuild, if the PyQt4 package gets updated. If this step is omitted, a bunch of strange errors will occur. Installation of translations Translations of the eric5 IDE are available as separate downloads. There are two ways to install them. The first possibility is to install them together with eric5. In order to do that, simply extract the downloaded archives into the same place as the eric5 archive and follow the installation instructions above. The second possibility is to install them separately. Extract the downloaded archives and execute the install-i18n.py script (type python install-i18n.py -h for some help). This way you can make the translations available to everybody or just to the user executing the installation command (if using the -p switch). Running Just call up eric5, which will start the IDE. Use the "what is"-help (arrow with ?) to get some help. Sorry, there is no documentation yet. To start the unit test module in a standalone variant simply call up eric5-unittest. This will show the same dialog (though with a little bit less functionality) as if started from within eric5. The helpviewer can be started as a standalone program by executing the eric5-webbrowser script. Please note, the first time you start eric5 it will recognize, that it hasn't been configured yet and will show the configuration dialog. Please take your time and go through all the configuration items. However, every configuration option has a meaningful default value. Running from the sources If you want to run eric5 from within the source tree you have to execute the compileUiFiles.py script once after a fresh checkout from the source repository or when new dialogs have been added. Thereafter just execute the eric5.py script. Tray starter eric5 comes with a little utility called "eric5-tray". This embeds an icon in the system tray, which contains a context menu to start eric5 and all it's utilities. Double clicking this icon starts the eric5 IDE. Autocompletion/Calltips eric5 provides an interface to the QScintilla auto-completion and calltips functionality. QScintilla2 comes with API files for Python and itself. PyQt4 contains an API file as well. These are installed by default, if the correct installation order (see above) is followed. An API file for eric5 is installed in the same place. In order to use autocompletion and calltips in eric5 please configure these functions in the "Preferences Dialog" on the "Editor -> APIs", "Editor -> Autocompletion" and "Editor -> Calltips" pages. Remote Debugger In order to enable the remote debugger start eric5, open the preferences dialog and configure the settings on the debugger pages. The remote login must be possible without any further interaction (i.e. no password prompt). If the remote setup differs from the local one you must configure the Python interpreter and the Debug Client to be used in the Preferences dialog. eric5 includes two different versions of the debug client. DebugClient.py is the traditional debugger and DebugClientThreads is a multithreading variant of the debug client. Please copy all needed files to a place accessible through the Python path of the remote machine and set the entries of the a.m. configuration tab accordingly. Passive Debugging Passive debugging mode allows the startup of the debugger from outside of the IDE. The IDE waits for a connection attempt. For further details see the file README-passive-debugging.txt Plugin System eric5 contains a plugin system, that is used to extend eric5's functionality. Some plugins are part of eric5. Additional plugins are available via the Internet. Please use the built in plug-in repository dialog to get a list of available (official) plugins and to download them. For more details about the plug-in system please see the documentation area. Interfaces to additional software packages At the moment eric5 provides interfaces to the following software packages. Qt-Designer This is part of the Qt distribution and is used to generate user interfaces. Qt-Linguist This is part of the Qt distribution and is used to generate translations. Qt-Assistant This is part of the Qt distribution and may be used to display help files. Mercurial This is a distributed version control system available from . It is the one used by eric5 itself. Subversion This is a version control system available from . eric5 supports two different Subversion interfaces. One is using the svn command line tool, the other is using the PySvn Python interface . The selection is done automatically depending on the installed software. The PySvn interface is prefered. This automatism can be overridden an a per project basis using the "User Properties" dialog. coverage.py This is a tool to check Python code coverage. A slightly modified version is part of the eric5 distribution. The original version is available from tabnanny This is a tool to check Python code for white-space related problems. It is part of the standard Python installation. profile This is part of the standard Python distribution and is used to profile Python source code. cyclops This is a tool to detect variable cycles which can cause the garbage collector being unable to do his job. Interfaces to additional software packages via plugins Some of the interfaces provided as plugins are as follows. pylint This is a tool to check the source code according to various rules. It is available from . cx_Freeze This is a tool for packaging Python programs. It is available from tarship.python.net/crew/atuining/cx_Freeze> Internationalization eric5 and it's tools are prepared to show the UI in different languages, which can be configured via the preferences dialog. The Qt and QScintilla translations are searched in the translations directory given in the preferences dialog (Qt page). If the translations cannot be found, some part of the MMI might show English texts even if you have selected something else. If you are missing eric5 translations for your language and are willing to volunteer for this work please send me an email naming the country code and I will send you the respective Qt-Linguist file. Window Layout eric5 provides different window layouts. In these layouts, the shell window and the file browser may be embedded or be separat windows. Source code documentation eric5 has a built in source code documentation generator, which is usable via the commandline as well. For further details please see the file README-eric5-doc.txt License eric5 (and the others) is released under the conditions of the GPL. See separate license file for more details. Third party software included in eric5 is released under their respective license and contained in the eric5 distribution for convenience. Bugs and other reports Please send bug reports, feature requests or contributions to eric bugs address. After the IDE is installed you can use the "Report Bug..." entry of the Help menu. This will send a message to

16,211

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧