View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-05-2009, 07:48 AM   #1
Registered: Dec 2008
Location: Chandigarh, India
Distribution: Red Hat 9
Posts: 67

Rep: Reputation: 15
Some more Functionalities with the Designer made form dialog

I have made a form with the help of the designer. But I need to add many more functionalities. How do I add them and most importantly where do I add them. Should I add them in *.ui.h or *.ui or main.cpp coz any other file is over written after compiling. The functionalities I want to add are
1. Multitasking with threads...I plan to have a routine in QT which can work all time...i.e. threaded.
2. when user presses start command button... i save a the values in 5 different textboxes in a file
3. Take in a data from another file and show it to the user in LCD.

Please help me as I am not very good at QT but have to do this work as a part of a bigger project.
Any help would be greatly appreciated.
Old 01-05-2009, 11:52 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
I would recommend taking some time to work through the examples and demos which come with QT. There are a lot of them, and they cover all of the tasks you mentioned.

The QT documentation is second to none in my opinion. I would take a look at the following classes: QThread, QFile, QTextStream, QVariant (if you want to save numbers to a file using a human-readable string, this class will help you with the conversion to C integer or float types).

Also, do try to understand the signal/slot mechanism. This is thread safe, so you can pass data between thread using this mechanism without worrying about all that stuff.
Old 01-05-2009, 11:54 AM   #3
Registered: Dec 2008
Location: Chandigarh, India
Distribution: Red Hat 9
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks...I would do the requisite and get back to you in case some help is required.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
graphical Linux router with firewall functionalities yiux Linux - Networking 0 02-20-2007 09:45 AM
Adding a canvas to a to a dialog created in Designer Gnarg Programming 1 09-26-2005 12:30 PM
Linux and XP NOS functionalities farhan Linux - Networking 5 12-06-2004 05:01 AM
Adobe Photoshop like Functionalities in GIMP gem_skywalker Linux - Software 2 12-23-2003 04:54 PM
app made in qt designer doesn't do anything when started dfuse Programming 4 07-02-2003 02:44 PM

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration