Click here to Skip to main content
15,892,537 members
Everything / QT Creator

QT Creator

QT-Creator

Great Reads

by Marco Bertschi
A brief step-by-step guide on what is needed to get Qt and the Qt Creator installed on your Linux environment
by Asif Bahrainwala
OpenGL Compute Shader
by AmirShrestha
This article demonstrates how to link a third party libraries (DCMTK) to Qt based project.
by Marco Bertschi
A short guide on how you can style and customize the appearance of you QML controls in a CSS-like way

Latest Articles

by Asif Bahrainwala
OpenGL Compute Shader
by PatGulotta
An easy to use C++/Qt/Qml Floating Action Menu providing the ability to add Floating Actions Menus to a Qt/Qml cross-platform project.
by Nicolas Kogler
Extensible code editor with syntax highlighting, code completion and line numbering
by Mahmoud Samir Fayed
Simple database application for Desktop and Android written in the Ring Programming Language

All Articles

Sort by Updated

QT Creator 

27 Jun 2011 by #realJSOP
You would probably have to identify some basic shapes - a human, a four-legged anmal, and a car/truck/motorcycle/bicycle/airplane/missile/godzilla, and then come up with some sort of matching algorythm that can determine what shape best matches the moving object.
8 May 2012 by #realJSOP
We're running QTCreator 2.4.10) Can anyone tell me where to find the list of components and their versions in 2.5?1) Can we update the compiler (GCC) and GDB without messing anything up?
31 Oct 2016 by A7lam Lover
i'm making a files hash calculator app for a kde linux enviromentbut i'm facing a few problems:in this code that calculate the file's hashhashwrapper *sha512 = new sha512wrapper();std::string sha512Hashing = sha512->getHashFromFile("file01.iso");you notice the file01.iso heremy...
31 Oct 2016 by A7lam Lover
i have found the solusionQString open_file = QFileDialog::getOpenFileName(this,"open file","/home path");QFile file01(open_file);now if you want to use the file for any operation you likefor example (get the file name or size) just use (file01) to do operations onby the way...
14 Nov 2011 by Abhishek Durvasula
hii want to read a file in qt.the file has around 2000 lines.i want only 100 lines to be displayed at once.i have put a next button.on clicking this button next 100 lines must be displayed.i am unable to go forward.please help.thanks in advance
20 Dec 2012 by Abhishek Pant
have look at thisProgrammable Logic Controller Editor[^]
14 Feb 2013 by Abhishek Pant
have a look at these threads they may help youhttp://qt-project.org/forums/viewthread/14449[^]http://stackoverflow.com/questions/5064815/launching-new-form-by-a-button-click-in-qt-gui-application[^]
15 Aug 2015 by Afzaal Ahmad Zeeshan
Ah, same question from Quora, maybe same user from there too? :laugh:I answered this question on Quora in the following words: Afzaal Ahmad Zeeshan on Quora[^]:Qt... never will be used. But, as Qt claims it can create applications for every platform. You also are aware of Qt and can...
19 Dec 2015 by Afzaal Ahmad Zeeshan
This post discusses the Ubuntu SDK and Qt IDE used in Ubuntu SDK for developing different types of Ubuntu applications and software services.
20 Dec 2012 by Albert Holguin
Well... set up your compiler to and IDE onto your Linux machine (if you use an IDE). Now, you'll have to rebuild your Qt libraries for Linux, that should be in their documentation (although I have noticed their documentation kind of sucks). Once you have built the libraries, configure your IDE...
4 Feb 2013 by Albert Holguin
Your question is pretty vague... but I do know that the Qt examples are pretty decent (although their detailed documentation isn't very good).Start here: http://qt-project.org/wiki/QtWhitepaper[^]Familiarize yourself with the framework then start a simple Qt application.
25 Feb 2012 by alizadeh91
Hello everybody..I've a question about QGraphicsItem.I've casted a qml file to QGraphicsItem (by creating a object by engine). And it's OK . But when i add this QGraphicsItem into a scene and view and i set its flag to be movable nothing will do when i try to drag it.Here is the...
4 Apr 2012 by alizadeh91
I've found it!That's Not possible!! but it can be casted to QGraphicsObject
5 Jun 2013 by AmanArora1987
Hi,I want to enable or disable bluetooth and wifi in Blackberry10 but unable to get any related api's , So Help me For this.Thanks & Regards
6 Jun 2016 by AmirShrestha
This article demonstrates how to link a third party libraries (DCMTK) to Qt based project.
27 Jun 2011 by ANJAN828
I’m trying to develop a code in Matlab and C++ to distinguish different moving objects. But I couldn’t get any concept...A moving object can be detected but how will I classify that as human, animal or vehicle?Thank you in advance.[edit]improved spelling and grammar and changed caps...
28 Jun 2011 by ANJAN828
Hello,I am trying to create a automatic number dialing system, it will recognize the hand gesture (e.g. finger gestures for indicating numbers) and corresponding operation should be done by the system.I am searching for the algorithm except the comparison technique.any body can help...
28 Feb 2012 by Arun Kumar K S
I have styled my QPushButton using stylesheet. Inside the border of the button and in the corners there are large areas that are not clickable . Using :hover I can see that Qt thinks the mouse is over the button but when I click, no clicked signal.I searched in net but not find any solution ti...
4 May 2012 by Arun Kumar K S
Hi,I am in a work to create a web browser,I modified the fancy browser source code, My problem is how to pop up print dialog to print my web page it s very urgent please help me...
17 Jul 2012 by Arun Kumar K S
I am creating a simple Image Editing tool to draw a shape on image using Qt. I can load Image to QGraphicsView. I tried sub classing QGraphicsScene and override mouse press event. But don't know how to draw a line on the image where the mouse pressed.How to draw a line or any text on a...
1 Aug 2012 by Arun Kumar K S
I created one application in Windows and Mac using Qt. It uses AVRDude(One cmmand line utility) utility to pass some instructions to the hardware device. I used AVRDUDE command line executable in windows to pass instructions.I placed the command line(AVRDUDE) utility in the working folder and...
10 Dec 2012 by Arun Kumar K S
Hi, I am developing a Qt application for Linux Ubuntu OS using Qt creator. Now I need to deploy this on my client machine. My client system is not having any Qt framework installed. I need to include the necessary Qt libraries with my application. I used dynamic linking method for including Qt...
14 Jan 2013 by Arun Kumar K S
I need to list existing USB hub and the devices connected in the hub.I can able to print the USB Hub and devices connected in hub from terminal using the commandslsusblsusb -v How I can do this programmatically. Is there any C++ classes available to use in my Qt application.
16 Jan 2013 by Arun Kumar K S
I am trying to create a USB device information application using Qt in ubuntu OS. when I try to create a sample application. It gives the following error main.o: In function `main':main.cpp:(.text.startup+0x36): undefined reference to `libusb_init'main.cpp:(.text.startup+0x52):...
17 Jan 2013 by Arun Kumar K S
I connected three USB hub in to a system and connected different devices in each hub. How I can find which device is connected to each hub? . I want to find which deice is connected to each hub using my C++ program. From which location I will get this details.I want similar to lsuusb -t...
5 May 2014 by Arun Kumar K S
I am trying to create an i2c communication in raspbery Pi(debian wheezy) using Qt creator with rpi-hw library. I successfully compiled and installed the rpi-hw library in my linux system. But when I try to include this in my Qt. Got the following...
22 Feb 2018 by Asif Bahrainwala
OpenGL Compute Shader
14 Mar 2015 by avi9111
I seems that QApplication very depends on QT framework but not your browser.I am now open page by using QApplication by python language, it work for png,html,text and anyother format, but where I try to load ogg sound, the QApplication and QWebView seems not work.Also then, on my computer,...
6 Nov 2012 by Barakat S.
If this file or data is transferred via a network, I'd recommend using SSL, using OpenSSL witch is free and cross-platform library: SSL Programming Tutorial[^].Even though, you don't have to start form scratch. Since you use QT, use what it provides you Secure Networking with QtSSLSocket[^].
10 Jan 2013 by Bhavin Jagad
Hi All, I am trying to play .mp4 file in QWebView of Qt using HTML5 video support(I can not use any plugin or adobe flash).I have 3 system. newly installed Windows 7 x64, Mac OS X 10.7 and Windows xp X64.I get new Qt 5.0 for windows and Mac and installed on all systems. I have also...
17 Jun 2015 by bhawin parkeria
I want to change the color of text to blue where ever i get the word "class" in qt edittext , but i cant find any way to do it , i am new in qt , can anyone please help me here is my code of file openvoid MainWindow::on_actionOpen_triggered(){ QString file =...
28 Jun 2015 by bhawin parkeria
I am building a text editor in qt , i am having this error when i try to implemet a simple texthighlighterhere is my code myhighlighter.cpp#include "myhighlighter.h"#include #include myhighlighter::myhighlighter(QWidget *parent) :...
28 Nov 2015 by bijaynayak
while compiling this cpp file getting the compilation error.class A final{public: A() { cout
11 Jan 2014 by Captain Price
Well, you have to program directly to the operating system's API. This API is system-specific. On windows it is the Windows API. The Windows API is written in pure C.A "Hello-World" of the Windows API (AKA, Win32 API)://"Hello-World" application#include LRESULT CALLBACK...
2 Mar 2017 by Charly LEE
Hi,as the description.I need to use the QFileDialog in Qt Quick Application without any widget. So I have to use it in QML. However, FileDialog in QML has no method/property to set the default saving file name so far as I know.Can anyone help me?What I have tried:I have searched...
7 Mar 2017 by Charly LEE
Hi,I am using QTextDocument to write html code and convert it to pdf filecode as below: QPrinter...
20 Dec 2012 by CHill60
First thing that came up from a google search ...http://www.control.com/thread/1286361303[^]
2 Dec 2015 by CHill60
Have a look at this post[^] which suggests a way around the lack of lost focus event.
14 Nov 2020 by CodeProjectQuestions
class GALLERYCORESHARED_EXPORT Picture { public: Picture(const QString& filePath = ""); Picture(const QUrl& fileUrl); int id() const; void setId(int id); int albumId() const; void setAlbumId(int albumId); QUrl...
15 Nov 2020 by CodeProjectQuestions
What does it mean to have the { } after the vector? QVector AlbumDao::albums() const { QSqlQuery query("SELECT * FROM albums", mDatabase); query.exec(); QVector list; while(query.next()) { Album*...
17 Nov 2018 by Coder Block
Hi all,Is there any PLC editor open source available in any laguange.or may be libraries that help me to develop my PLC editor window base application.If not,The please suggest me best shareware for same.Thanks ,
19 Dec 2013 by Coder_Jack
I am trying to import an external program through QT. All the article and questions I found on google or in Qt website tells me to use the code below but It doesnt work. I set it to a button but when I run the code and click on button It does nothing. How should I handle this?Function...
19 Dec 2013 by Coder_Jack
I got the solution. This works in ubuntu 12.04.void MainWindow::on_pushButton_clicked(){ QString program = "/home/sabri/KHG/pcd_viewer"; QStringList arguments; QProcess *myProcess = new QProcess(this); myProcess->start(program,(QStringList)...
2 Jun 2013 by CongDanh D.
You may use the built in preprocessor: QT_DEBUG
6 Nov 2012 by CPallini
You may use, for instance AES. The C source code maybe found here: "Cryptography - 256 bit ciphers"[^] (I used it without problems).
19 Dec 2012 by CPallini
It looks using a Linux virtual machine would be the easy path, see the following discussion: http://qt-project.org/forums/viewthread/16474[^].
29 May 2013 by CPallini
Quote:QString myString to TCHAR wString ??QString has the toWCharArray[^] method.
19 Dec 2013 by CPallini
Form the documentation[^], it looks you should use:QProcess myProcess;myProcess.start("pcd_viewer", QStringList()
11 Jan 2014 by CPallini
You might use, for instance, Visual C++, either for creating a console application or a GUI one.A GUI application written using WINAPI would have a pretty small executable with minimal additional dependecies (see, for instance "Deployment in Visual C++"[^]).
30 Oct 2015 by CPallini
There must be a method with the same name and signature in the pCANLinkerClass class declaration (usually in the header file), e.g.in pCANLinkerClass header fileclass pCANLinkerClass{//... void mypcanlinkerfunction();//...};
18 Nov 2015 by CPallini
Quote:public void mytesfunctioncall();This is not valid C++ code. It is better if you post the actual code, in order to get proper help.
22 Nov 2015 by CPallini
The modulus operator (%) is your friend. You know, for instance: int i = 645; int a = i % 100; // a is 45 int b = i - a; // b is 600
24 Nov 2015 by CPallini
You are assuming fields[1] exists, that is the QStringList contains at least two items. Such an assumption, according to the documentation[^], is wrong.
28 Nov 2018 by CPallini
As Rick stated, this is a common linker error about missing methods. Now, looking at your code, you defined onsecChanges, onminChanges and onhrsChange methods, but you are apparently calling (see the error messages) secChanges, minChanges and hrsChanges. Can you spot the name mismatches? You...
29 Nov 2018 by CPallini
I've just installed QTCreator (3.5.1, based on QT 5.5.1) on my Linux box. The program compiled and ran smoothly (buttons producing no effect, however). To make it work I had to: add a sleep call in the Mythread::run method. //... for (int i = 0;; i++) { sleep(1); QMutex mutex; ...
17 Feb 2021 by CPallini
The brackets force the .x evaluation to happen before the .toFixed(2) one. Note they are not needed because of the left-to-right associativity of the member access operator (.). See C++ Operator Precedence - cppreference.com[^].
29 Sep 2023 by CPallini
The documentation Create Your First Applications | Qt 6.5[^] doesn't fit your needs?
30 Oct 2011 by danger man 2011
Hi , i build my own database and i have draw a chart for my database , i add a widget it's QgraphicsView widget PyQt4 , i need now to show my chart on this widget how i can do something like this ??
30 Oct 2011 by danger man 2011
scane = QtGui.QGraphicsScene() pic = QtGui.QPixmap("testbar.png") scane.addPixmap(pic) self.graphicsView.setScene(scane) self.graphicsView.show()
21 Jun 2013 by Dark Darkling
You need to implement all methods from 'customctrl.h' file in 'customctrl.cpp' file:customctrl.cpp========================================#include "customctrl.h"customctrl::customctrl(QWidget *parent = 0) : QWidget(parent) { resize(50, 50); ...
31 Dec 2016 by Dave Kreskowiak
There is no "best". It's a matter of preference. Try them both out and make your own decision.
25 Jun 2013 by Dilan Shaminda
Hi, i made a program which finds contours of a given binary image..it works fine when i used it in vs2010..it is a console project..Now i tried the same code in Qt(used QT add-in in vs2010) with an simple interface.But it gives an exception in findContours(Dialate, contours, hierarchy,...
25 Jan 2013 by DinoRondelly
This will help with your insert statement,http://www.w3schools.com/sql/sql_insert.asp[^]INSERT INTO table_name (column1, column2, column3,...)VALUES (value1, value2, value3,...)
1 Jan 2017 by Dreamer_X
i code with C++i want to know which is the best for GUI Desktop application : Qt or Visual Studio?What I have tried:i code with C/C++ and for web Python(Django)i tried at school C#
28 Dec 2015 by Eftimoski Mende
The problem is that you are trying to show the values in the constructor. The constructor is called when the dialog object is created, before you call the getters and setters and the exec() function.When the dialog is displayed (with the exec function) the values should be on the form.
14 Nov 2011 by elgaabeb
Hi,You must create a class that inherits from QFile with methods : - OpenFile() - ReadNextHundred() - CloseFile().Then you connect ReadNextHundred() to the button "Next" Clicked Event.Once button Clicked you should clear Display widget and show next lines.I think that the example in...
17 Nov 2011 by elgaabeb
Hi,To do this you need to build your Qt version statically.This link would help you :how-to-statically-link-qt-4/[^]
7 Feb 2022 by Elmin Hozbo
So I made simple calculator using pushbuttons(+,-,*,/)now i want to add a combobox instead of pushbuttons but i dont really now how.I was trying with switch case but it dont work.PLease help. What I have tried: I tried switch and i think i can...
2 Jul 2011 by Emilio Garavaglia
Learning Java from C++ is easy.Your problem will not be Java itself, but the library you will use for GUIs.And it is the same problem as learning the QT library.
6 Feb 2013 by Espen Harlinn
Let's not forget C++Builder XE3 [^]I like the IDE, and you'll find tons of free components at: Torry's Delphi Pages[^], as C++ builder is able to use, and compile, components written for Delphi (VCL).Best regardsEspen Harlinn
22 Mar 2019 by Gerry Schmitz
A serial port can only be accessed by one thread at a time (open; close). Each Window has its own thread; so they cannot "share the port". You can share the "data" / concurrent queues; not the port.
27 Feb 2013 by getrelax
I am new to Mac os and i just installed qt creator and created new Qt console application to test whether the compiler works or not. When i try to build it i am getting error that says token is not valid binary operator in a preprocessor subexpression #if __has_extension(is_enum) .... on...
28 Jul 2011 by Gokulnath007
I have used the following code to connect to the mysql database, the connection succeeds, but nothing is happened in the database and also no table is created and the rows are not indeed updated. Kindly help me on this issue..QSqlDatabase db= QSqlDatabase::addDatabase("QODBC"); ...
29 Jul 2011 by Gokulnath007
What are the dll's and lib files to be added for my application to run on the Non-Qt installed machine??QString host = QHostInfo::localHostName(); QHostInfo hostinfo = QHostInfo::fromName(host);; QString address = ""; if (!hostinfo.addresses().isEmpty()) { QList list...
3 Aug 2011 by Gokulnath007
How to produce a single Executable exe file?? My project in Qt depends on certain dll's, but i want to include all this in a single exe file. No other file should be there. How to add them within a single exe?
5 Aug 2011 by Gokulnath007
How to save this blob data into database?? I am reading the jpeg image in Qbytearray; But while saving to database, the image size is doubled and while retrieving from database, the file is being corrupted. How to read the image properly?? QByteArray buf=NULL; originalPixmap...
6 Dec 2011 by Gokulnath007
I would like to give full permission and privileages to the application which accesses hard drive, how to give that during static building in commercial version?
1 Mar 2022 by Greg Utas
I'm not familiar with qt, but it probably has a "time now" function that includes milliseconds. Something like this should then work. You have to calculate how long to sleep until the next multiple of 100 msecs occurs: int sleep_time() { auto...
8 Nov 2015 by griffwk
To really see what's going on, you need to run your program under the debugger, and when the exception occurs, trap it, and post the debugger info here.i.e. Exception type, stack trace, source code on which the error occurs, etc.then, we might be able to pinpoint your problemgwk
29 Oct 2012 by Guirec
if all your dlls are .net assemblies then there is a simple alternative way Merging .NET assemblies using ILMerge[^]http://ilmergegui.codeplex.com/[^]
27 Jun 2011 by Guyverthree
I did a little bit of the theory in University.Basically you need to find the differences between two frames of the video. (this gives you the movement between the two frames)Secondly once you have the differences you can then do your pattern matching to try to see what has moved. (I.E....
19 Dec 2013 by H.Brydon
It seems to me that you don't have an implementation that will satisfy:QProcess myProcess(commandAndParameters);ormyProcess.start();The APIs in question take different parameters from what you have provided...
3 Feb 2013 by Hardik Acharya
I have c++ code which uses GDAL libraries to open the image and do some operations on an image (like slope, aspect, hill shade etc). Now, I want to make a GUI in which I want to open an image from the directory. After that I want to apply operation on the image (assume as slope - c++ code) and...
14 Jan 2015 by HellMaster[cz]
Hi guys,I'll try to introduce you my task/issue, before my question.I have an MS-Access database and "some.txt" file containing unique ID's. Those ID's correspond to the ones in my database. This text file is generated from a third party SW. I need to read this file (to get those ID's),...
20 Dec 2011 by hilmisu
Hi everyone,I have not much experience in qt, I was developing a serial port terminal then i came acroos with thisexample code. it works perfect in windows, but i have to use it in linux. when i tried to build this code in linux i get this error (without quotes) "error: cannot find...
14 Feb 2012 by hilmisu
I am developing a qt application in linux. I wanted to give linux commands to terminal. its okay i did that but i want to get terminal response to this command. For example,ls -aAs you know this command has listed the directories. I wanted to show this returned values in my application. Is...
6 Feb 2013 by hor_313
i am seeking for a good (best) IDE for c/c++ programming .i found Qt but i dont know is it the best choise or not?and i saw in its site , it have 2models for windows . 1- Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) 2-Qt 5.0.1 for Windows 32-bit (VS 2010, 481 MB) i dont know i...
18 Feb 2013 by hor_313
hii have Qtcreator 2.6.2 in my computer but it designer tab is disabled . how can i activate that?
3 May 2013 by hor_313
Hi I Want to build a Qt GUI form with main window , then load an image with a button in form and then resize the image to the height and weight that the user inputs .Which widget or elements I need to push to my form in design mode? And where I must coding for that I mentioned above...
20 Dec 2012 by IDENguyen
you can use linux open suse. It so good for you to compiler c, or c ++
15 Jul 2013 by iicaykn
some body help me to find out this....In that tip i need put some data like labels and images
24 Jul 2013 by iicaykn
Plz someone help me to find this both the tabs are created with same instance...
18 Feb 2021 by jacobglaw
onReadingChanged: { accelerometerReading.xValue = (reading.x).toFixed(2); accelerometerReading.yValue = (reading.y).toFixed(2); accelerometerReading.zValue = (reading.z).toFixed(2); } What I have tried: onReadingChanged: { ...
15 Jan 2013 by Jochen Arndt
Just have a look at the usbutils[^] sources which contain the lsusb utility. It uses the libusb[^] package. See the libusb API[^] for the provided functions.
16 Jan 2013 by Jochen Arndt
You must link your program with the libusb library. Therefore, you have to add the libary name libusb to your project. How to do this depends on your development environment. With a simple Makefile, just add the name at the end of the linker call (many Makefiles use a LDLIBS variable that is...
13 Nov 2014 by Jochen Arndt
Downloading SSL certificates is usually done using the OpenSSL libraries. So install these libraries and add the path and library names to the LIBS variable in your Qt project file. You need than to create a socket, connect to the server, and call the required OpenSSL library functions. With...
19 Dec 2014 by Jochen Arndt
Qt provides an IDE (Qt Creator) which is also available for Windows. The Windows version includes MinGW, a Windows port of the GNU compiler tool collection. There is also a Visual Studio add-in available.For download see the Qt download page[^].When you have installed Qt Creator and the...
17 Jun 2015 by Jochen Arndt
This requires that the QTextEdit uses HTML text (also called RichText with Qt). When loading a plain text file you must convert it to HTML and apply the required formats (e.g. by replacing "class" with "class"). Then use setHtml() instead of setPlainText(). See...
10 Nov 2015 by Jochen Arndt
In this block you are creating a QFile object with the same name as an existing object:if (nflag!=0){ QFile mFile(LoggerFileName); mFile.open(QIODevice::WriteOnly|QIODevice::Text); nflag=0;}You are opening a file but the other mFile object is still in it's previous...
11 Nov 2015 by Jochen Arndt
An incomplete example on how to store a timestamp based on the available code:int prevTime = 0;void someFunction(){ if (PCANReadS == PCAN_ERROR_OK) { int diffTime = 0; // If not first frame if (prevTime) difftime = timestamp.millis -...