qt-creator

What .gitignore I should use with QT projects? (QT Creator)

So, after little thinking I have wrote the following: # In repository we don't need to have: # Compiled object files *.o # Generated MOC, resource and UI files moc_*.cpp qrc_*.cpp ui_*.h # Debug and Release directories (created under Windows, not Linux) Debug/ Release/ # .log files (usually created by QtTest - thanks to VestniK) *.l...

Background image not showing on Qwidget

HI, i am designing a window using QWidget and set a background image, when i run my code i am not getting background image but showing window with default background. Can anyone help me what may be the reason. ...

Ovveride, the paintevent of the Qwidget.

Hi, I want to put a background image in mt QWidget, can anyone help me on this. how to Ovveride, the paintevent of the Qwidget and draw a image there ...

How to put an imageor icon over a pushButton

hi, Can anyone help me on putting an image or icon over a push button. I tried with style sheet but not working. Please help ...

Can I get build warnings from a custom build step in Qt Creator?

I have the following script that I run as a custom build step in Qt Creator: git ls-files . | egrep "\.cpp$|\.h$" | xargs vera++ Which then gives output: foo/bar.cpp:1: no copyright notice found Another script I also use is: cppcheck . --template gcc -q --enable=style,unusedFunctions With the output: apple.h:8: style: The class...

Need QT Creator Source files

I want to create a similar GUI as QT Creator main layout and thus I am looking for QT Creator Source files. Can anyone direct me from where to download. Thanks in advance. ...

Doing Cross-platform builds with Qt Creator

I am working on a desktop application using the Qt framework and Qt Creator IDE. I am doing my development on mac, and would like to begin testing on Windows as well. I am having trouble finding documentation on how do this. What's is the best way to develop on mac and automate windows builds of a Qt Creator project? ...

How to check whether value in QTable widget changed

HI, I have some data there in my tablewidget and it is editable. My intention is to take data from edited row and column. IS it possible. Is it possible to check the edited row and column. Any specific signal is there? ...

Row and column position after itemChanged signal on QTablewidget

HI, I want to get the changed datas row and column position after the signal void QTableWidget::itemChanged ( QTableWidgetItem * item ) please help ...

Qt Creator - how to open the property editor

whenever I opened a cpp file I can only see the editor, I can't see the property edior. When I tried to see it by going through Tools->Form Editor->views Every thing is disabled. So I cant click anything there. Can anybody suggest a solution? ...

How to set font Bold to a particular row in table widget

i want to set my font as bold in particular row column position of my tablewidget. I did like this but getting break. QFont font("Helvetica", 12, QFont::Bold); overviewTable->item(2,2)->setFont(font); Please Help ...

How to compile a C project with more than one main function?

Hi folks, I am new to C, and now read some textbook and going to apply its examples. The problem is, whenever I creates a new project and try to put more than one file that contains a main function, the linker (as I thougt0 explains saying: /home/mohammed/tmp/abcd/main.c:4: multiple definition of `main' (BTW, I used many IDEs, MonoD...

How to calculate the number of weeks in a month

Hi, I want to calculate the total no of weeks in current month. Starting from Sunday or Monday. Is it possible to do in Qt ...

Which is better? Qt Creator or Visual Studio IDE

I am currently using Qt Creator 1.3 for my Qt applications. I know it uses jom for make step which is better when we have multi core processors. But besides that what are all the advantages of using both the IDEs? Dis advantages as well? I am using CL compiler though for compiling my applications. Is there any other specific advantages ...

How to handle too many files in Qt

I'm not sure how to ask this, but here goes the question: I'm migrating from J2SE to Qt. After creating some small applications in Qt, I noticed that I've created way too many files compared to what I would've create if I was developing in Java (I use Netbeans). For an example, for a GUI to Orders, I'd have to create Main Order Sear...

How to find the day of a Date

Hi, I want to find the day of the week of a particular date in Qt. e.g.: 1/05/2010 is Sunday. Is it possible to find the weekday using date? ...

What is the purpose of the garbage (files) that Qt Creator auto-generates and how can I tame them?

Hello Everyone, I'm fairly new to Qt, and I'm using the new Nokia Qt SDK beta and I'm working to develop a small application for my Nokia N900 in my free time. Fortunately, I was able to set up everything correctly, and also to run my app on the device. I've learned C++ in school, so I thought it won't be so difficult. I use Qt Creator...

Cannot run an executable binary file on another Linux System??

I'm using Ubuntu 10.04 and Qt4.6, and I've created an executable binary file on my own computer through QtCreator. Now I want to put my executable file on CentOS 5, but it seems that this executable file cannot run on CentOS. The error message is bash: ./[filename]: cannot execute binary file Now I know this comes from 32-bits and ...

QtCreator on linux: 32-bits vs. 64-bits.

My laptop is 64-bits, so when I start to use Qt, I chose 64-bit QtCreator. Now I'm facing a problem, I wish that the executable files I generated are runnnable on 32-bit linux system. Can I set QtCreator to generate 32-bit executable files? So that I can decide I want to generate 32-bit ones or 64-bit ones. I don't want to install anot...

Singleton class issue in Qt

i created a singleton class and trying to access that class in other class but getting error "cannot access private member" Setupconfig is my singleton class and i am trying to access this class in other class which have QMainWindow Error 'Setupconfig::Setupconfig' : cannot access private member declared in class 'Setupconfig' /////...