qt-creator

gdb remote cross debugging fails with “Remote 'g' packet reply is too long”

拈花ヽ惹草 提交于 2019-12-20 11:52:26
问题 I have a problem with remote debugging. Host: laptop intel i5 with ubuntu 10.10 x86 Target: Freescale iMX35 (iMX35 PDK) arm 11 Development environment: Qt Creator 2.1RC and Qt4.7.1 libraries. Arm compiler in path: /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin arm-none-linux-gnueabi-gcc-4.1.2 arm-none-linux-gnueabi-objdump arm-none-linux-gnueabi-addr2line arm-none-linux-gnueabi-gccbug arm-none-linux-gnueabi-ranlib arm-none-linux-gnueabi-ar arm-none-linux

Force relink when building in QT Creator

扶醉桌前 提交于 2019-12-20 11:36:34
问题 Greetings, I have a subdirs project which wraps a couple libraries and a main application. When I change something in one of the libraries the main application does not relink with them.. does anyone have a trick for getting an application to relink with its statically linked libs automatically when using QT Creator? -Dan O 回答1: There is a workaround for this and also an interesting discussion on the subject (qmake seems to be the problem here) on the Qt Creator mailing list. The workaround

How to add short-key for “Add Definition in class.cpp” in Qt Creator

霸气de小男生 提交于 2019-12-20 11:35:14
问题 When you define a member function in a class Interface in Qt creator you can right click on the function prototype and select Refactor->Add Definition in YouClass.cpp . But this will be really handy If you can set a shortcut for it. I couldn't find it in options->shortcut section. For example in Visual Assist you can press ALT+SHIFT+Q. 回答1: You can press Alt+Enter to open a context menu that contains refactoring actions, which are available at the current cursor position. This is also

Qt Creator: Run in Terminal

你。 提交于 2019-12-20 10:52:06
问题 I want to get full console functionality running the program in Qt Creator, the same problem as described here: Console input with Qt Creator When I check "Run in Terminal" in configuration properties, empty terminal window is opened, without my program output. Tools - Options - General - Terminal has this value: "x-terminal-emulator -e". How can I get this working? My OS is Ubuntu 10.4. Note: Please don't close this question, it is not duplicated! I need solution for Ubuntu OS. 回答1: Under

How can i Post the data in QtCreator?

半世苍凉 提交于 2019-12-20 06:33:36
问题 Here is my code of Qt creator to send the data to PHP server and get the response. QNetworkAccessManager *manager = new QNetworkAccessManager(this); QNetworkAccessManager::connect(manager, SIGNAL(finished(QNetworkReply*)),this , SLOT(replyFinished(QNetworkReply*))); QNetworkRequest *request = new QNetworkRequest(QUrl("http://68.169.55.41/fss/verifylogindetails.php")); QByteArray postData =" {\"estate_id\":\"hsr\",\"emp_pin\":1234,\"emp_id\":\"santhosh\"}"; request->setRawHeader( "User-Agent"

how to write all the <p> tags to text file

瘦欲@ 提交于 2019-12-20 06:08:31
问题 I need to write Qt/C++ code to extract all the p tags to write each p tag to .txt file, For example if I have the following HTML page: <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> <p>My second paragraph.</p> </body> </html> I need the code to create 2 .txt file the first one will include My first paragraph. and the second will include My second paragraph. my problem how to parse the html and get the txt between the tags, here my code int main(int argc,

Qt Creator no member named stackedWidget

一曲冷凌霜 提交于 2019-12-20 05:52:34
问题 I've just designed my ui in the QT-Creator and, as the main application is based on two panels, I decided to use the StackedWidget for "change the layout" without opening a new window. So, I added a QTStackedWidget named: stackedWidget (as default). The problem is in mainwindow.cpp, I added a custom SLOT that contain: ui->stackedWidget->setCurrentIndex(1); when I build this the compiler says: mainwindow.cpp:25: error: no member named 'stackedWidget' in 'Ui::MainWindow' ui->stackedWidget-

Qt Creator - How To Enable a Floating IDE Layout?

怎甘沉沦 提交于 2019-12-20 04:34:35
问题 I'm a long-time user of Embarcadero C++Builder peeking into Qt Creator (Ver. 4.4.0) at the moment, which seems to be well-suited for all kind of C++ development tasks and thus might be pretty productive. Unfortunately there's one major drawback slowing me down significantly in comparision to C++Builder : I can't find any setting enabling the re-arrangement of Qt Creator 's default IDE layout, since it's just not mine. Is it really the case, that such a classy-looking IDE won't have that kind

Adding object (.o) files to qtcreator project

心已入冬 提交于 2019-12-20 02:26:13
问题 How does one add third party .o and .h files to a Qt C++ project in QtCreator? I want to add some compiled .o files from John The Ripper to my probject (ignore the non-cross-platformness of that). As a test, a wrote a small C program (outside QtCreator) and linked it against common.o and MD5_std.o and it worked fine; I can just do gcc -o runme common.o MD5_std.o simpleprogram.c , but with QtCreator, nothing seems to work. I keep getting undefined references. I tried adding this to the .pro

Can't launch QtCreator debugger since XCode update to version 6

时光怂恿深爱的人放手 提交于 2019-12-19 19:49:46
问题 Xcode updated itself to version 6 and now I can't launch QtCreator in debug mode. Does anyone know how to solve this? 回答1: This is a known bug in Qt Creator. The workaround is simple: in Window->Views, show the debugger command log, then start the debug session, wait a a bit for it to get stuck, and hit Enter from within the command line in the debugger command log. 回答2: You can attempt this patch created for LLDB 320.x in Xcode 6.01 git fetch https://codereview.qt-project.org/qt-creator/qt