qt-creator

using Qt 5.0 with Qt Creator and vs2010 compiler

大城市里の小女人 提交于 2019-12-12 01:44:49
问题 I recently decided to upgrade from Qt 4.X to 5, though now it has only vs2010 supported. Whenever I start Qt Creator I get that there isn't any compiler (and there are no options in the settings to set one). Question: How do I download the vs2010 compiler? Do I have to download vs2010 itself? Will I get a debugger as well? I have tried this suggestion, but Qt didn't pick up the compiler: Using Visual Studio as a Compiler for QT Creator Sorry if this question have been asked before, but I have

Qt Creator building with MSVC

浪尽此生 提交于 2019-12-12 00:33:50
问题 I would like to build a 64 bit app with Qt Creator on Windows so unfortunately I have to use MSVC compiler. I had installed Qt Creator with required SDK but still I couldn't build with MSVC2013 toolchain since I didn't have the compiler. Event though I had MSVC 2015 installed with Visual Studio 2015, that wasn't enough for Qt Creator. I didn't feel like installing Visual Studio 2013, so I copied only the MSVC 2013 compiler from my friends Visual Studio 2013 directory. Still it wasn't listed

System tray icon working in debug but not release mode, in Qt

别说谁变了你拦得住时间么 提交于 2019-12-11 23:48:24
问题 I have a Qt application with a system tray icon and a menu that shows up when right-clicking the icon. For some reason, the menu items work fine in debug mode but not in release mode. QAction* closeAction = new QAction("Close", this); QMenu* trayIconMenu = new QMenu(this); trayIconMenu->addAction(closeAction); QSystemTrayIcon* trayIcon = new QSystemTrayIcon(this); trayIcon->setContextMenu(trayIconMenu); QIcon trayIconIcon("Application.png"); trayIcon->setIcon(trayIconIcon); trayIcon->show();

Linking errors in FLTK 2.0 in windows

女生的网名这么多〃 提交于 2019-12-11 20:25:59
问题 I am using Qt Creator( without using any of Qt libraries) to test a Hello World project of FLTK2.0. But I am getting errors like: Errors: UpBox.cxx:-1: error: undefined reference to SelectObject@8' UpBox.cxx:-1: error: undefined reference to SetROP2@8' UpBox.cxx:-1: error: undefined reference to PatBlt@24' UpBox.cxx:-1: error: undefined reference to CreatePatternBrush@4' UpBox.cxx:-1: error: undefined reference to DeleteObject@4' :-1: error: C:\Users\mypc\Desktop\FLTK\fltk-2.0-win-bin\lib

Runing an app in a terminal with a debugger on Linux using Qt Creator

别来无恙 提交于 2019-12-11 19:39:15
问题 I have simple console application in C++ written in Qt Creator 2.4.1 on Kubuntu 12.04. My app have simple menu where you choose what you want to do (using std::cin and getline() ). The problem is that I cannot input data in console in Qt Creator. So I use option "Run in terminal" (xterm). But when I want to run debugger I get "ptrace operation not allowed". So: In QtCreator console I cannot input data (debugger working) In terminal I cannot use debugger (ptrace operation not allowed) I need

No such slot button QT

孤街醉人 提交于 2019-12-11 19:24:47
问题 for(i=0; i<height; i++) { for(j=0; j<width; j++) { button[i][j] = new QPushButton("Empty", this); button[i][j]->resize(40, 40); button[i][j]->move(40*j, 40*i); connect(button[i][j], SIGNAL(clicked()), this, SLOT(changeText(button[i][j]))); } } If i changed function changeText with function (fullScreen for example) it works but when i use a slot defined by me (changeText) this Error Appears and i don't know how to solve it QObject::connect: No such slot buttons::changeText(&button[i][j]) and

changing property of element from other qml file

社会主义新天地 提交于 2019-12-11 16:33:22
问题 I know that there is tons of topic similar like this, I try to implement answer from them and I still have no results. I take some sample project from qt creator to play with this. I play with changing visibility of qml files ( treat every file as other screen). After lunching 3rd screen I want to make the second one invisible. Here Is the code where I want change property in it: MyLuncherList.qml import QtQuick 2.0 Rectangle { Item { id:ei visible:false clip: true property url itemUrl

Broken text in Qt Creator UI

感情迁移 提交于 2019-12-11 16:25:25
问题 Sometimes (not always), certain text items in the Qt Creator UI are broken: Any idea what causes it? Or a workaround? Maybe the problem is my cheap video card (an Intel on-board one). This theory is supported by the fact that Creator is probably QML-powered by now, meaning it's running on OpenGL. I tried restarting Creator and that fixed it, but after switching between the Welcome and Edit tabs a few times, it happens again. I tried making Creator's UI use the software QML renderer, rather

Qt Creator is not displaying SFML windows

╄→гoц情女王★ 提交于 2019-12-11 14:28:44
问题 I've recently set up qt creator to work with SFML, and I tried running a piece of code as a test to see if it works. I must note the code bellow works perfectly in Codeblocks IDE but in qt creator it simply displays a console with the text "Press RETURN to close this window..." #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <iostream> using namespace std; using namespace sf; Window w(VideoMode(350,350,32), "Tic Tac Toe"); Event e1; const Input& in1 = w.GetInput(); int main() {

Qt5.1.0 Static linking, “This application cannot be statically linked to the fftreal library”

被刻印的时光 ゝ 提交于 2019-12-11 12:57:45
问题 These are the exact steps that I took: Installed Qt 5.1.0 from this link and placed it in C:\Qt\Qt5.1.0\ : http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc2/qt-windows-opensource-5.1.0-rc2-mingw48_opengl-x86-offline.exe Extracted sources and put it into C:\Qt\Qt5.1.0\Source\ : http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc2/single/qt-everywhere-opensource-src-5.1.0-rc2.zip Installed Active Python 2.7 in: C:\Python27\ (Added to PATH), Ruby 200 in: C:\Qt