qt-creator

LNK4099 linker warning with clean install of Qt SDK and Visual C++ 2008

只谈情不闲聊 提交于 2019-12-10 14:44:44
问题 Did a clean install on a new Windows 7 computer with: Visual Studio 2008 SP1 Qt SDK 1.1.4 Then I created a new project in Qt Creator. I picked "Qt Gui Application" under "Qt Widget Project" and had it target desktops with Visual C++ 2008, both debug & release (basically default settings). Then I pressed Build, and got.... qtmaind.lib(qtmain_win.obj):-1: warning: LNK4099: PDB 'vc90.pdb' was not found with 'c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\lib\qtmaind.lib' or at 'C:\Users\JamesJ\Desktop

Qt/Qt Creator - The program has unexpectedly finished. <program's path> crashed

ε祈祈猫儿з 提交于 2019-12-10 14:16:07
问题 I'm somewhat new to C++ and to Qt 5.2.1. I'm actually learning how to use Qt. To do it as easy as possible, I'm using Qt Creator 3.0.1. I've written this little piece of code in the main.cpp file of my project : #include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton bouton("Hello !"); bouton.show(); return app.exec(); } And the .pro file (by default) : SOURCES += \ main.cpp I tried to make it run, then I got the issue

How to programatically resize a QMainWindow to its minimum size

时光毁灭记忆、已成空白 提交于 2019-12-10 14:04:56
问题 When I have a QMainWindow with a grid layout, when resizing it with the mouse, it won't go below some minimum size that's necessary for all the controls in it to show properly. In my app I sometimes programatically hide controls, but then the window remains the same size and the rest of the controls look spread out, with too much space between them. I end up resizing the dialog manually so it doesn't look ugly. Can I programatically set the dialog's vertical size to this minimum I get when

Compiling 32-bit Qt application using 64-bit package

安稳与你 提交于 2019-12-10 13:18:06
问题 I'm using Windows 8 64-bit, Qt 5.0.2 for Windows 64-bit and Visual Studio 2012. I have no trouble compiling and running my application on 64-bit OS, but apparently it doesn't work on 32-bit OS. Is there a way to compile 32-bit application with what I have, or should I install Qt for Windows 32-bit? (I download Qt from here.) If it's possible, I would like a hint at where that option is. I'm using Qt Creator. 回答1: It's not possible with 64bit library, but you can download and install the

MenuBar issue QT 4.7.4 on MAC OS LION

こ雲淡風輕ζ 提交于 2019-12-10 13:17:21
问题 I'm new to QT programming. I want to create a simple menubar with two menus , and several actions (3 actions for FILE menu and one action for VIEW menu).I have createMenus() method where i create those menus and actions then I add created menus to menubar ,but when i run the app , it's not showing this menubar , and i dont know why. Can anyone tell what the problem is ? Source code of MainWindow.cpp #include <QtGui> #include <QAction> #include "MainWindow.h" MainWindow::MainWindow() { //

QTCreator .pro file: Setting LIBS path depending on DEBUG / RELEASE

守給你的承諾、 提交于 2019-12-10 11:57:08
问题 As a newbie to Qt I am writing a small project depending on another project, located in a parallel directory. In my .pro file some .obj files are includes as below (which works). However, when creating a release I'd like to use the other project's release and not its debug path. I have checked the Qt variables and found the "TARGET example". But I failed to apply it to my LIBS , especially since the build can be for both debug_and_release , and I have no idea how to write the LIBS path then.

I'm having issues getting the qwt widget to work correctly with Qt-Creator

怎甘沉沦 提交于 2019-12-10 11:37:38
问题 I'm having issues getting qwt 6.1.0 to work correctly with Qt-Creator 5.1.0. It works correctly when I launch the stand alone version of Qt-Designer and everything compiles and runs correctly when I use Qt-Creator. However the designer that is built into Qt-Creator does not display the qwt widgets correctly on any forms nor give me the option to add new qwt widgets. I'm using Qt Creator 5.1.0 for Windows 64-bit (VS2012 with OpenGL). I've also downloaded and compiled Qwt 6.1.0 with the

Qt Creator with Visual C++ 11

有些话、适合烂在心里 提交于 2019-12-10 11:23:14
问题 I want to use Qt Creator with MS VC++ 11 but it says there is no toolchain to build Qt. I installed Qt with the full SDK installer. What to do now? 回答1: Isn't MSVC++ 11 comes with Visual Studio 11? If so then Qt hasn't supported makespec file for that version AFAIK (correct me if I am wrong). But following are the (rough) steps for running Qt Creator with MSVC 2010 nmake/cl tool-chain.. Download Qt SDK 4.8.2 compiled using msvc-2010 toolchain from this site (second page). Install MS VC++ 2010

'linker input file unused because linking not done' when trying to setup QT creator & Cuda

久未见 提交于 2019-12-10 10:55:16
问题 I'm trying to get started with with C and Cuda using QT creator as the IDE. Unfortunately I'm having problems from the start and not sure where its coming from(if it started gradually it'd be easier to identify). I basically already installed CUDA(and c) and had small test programs running but I wanted to use an IDE so I installed QT creator using the instructions on: http://cudaspace.wordpress.com/2011/04/07/qt-creator-cuda-linux/ but I'm getting errors when running the example: 'linker

How to load cmake script with more than one project with Qt Creator

a 夏天 提交于 2019-12-10 10:51:23
问题 I have a CMake project, and until now, I was using Visual C++ for developing. Using CMake-gui to generate a solution for VC++, it generates more than one project in the same solution. But when the script is loaded in qt-creator, only one project is defined, with all the code and folder tree inside, so I can not compile it (or I don't know how to do it). How can I load the cmake file to load all the projects? More info: The first CMakeList.txt has some common configuration. Then, with 'add