Some changes:
in the *.pro file it needed to be included
QT += sql // taking care of case
although the backingdb.cpp file is not functioning properly as expected, it places 21 out of 23 parameters in place [which may still be considered as a failure]. Even after cross-checking the syntax several times and writing from scratch, the real bug could not be figured out, soon the code would be split into database tables in a 'tab specific' manner hence reducing number of parameters passed per function.
The database, compared to previous HTML outputs, gives an upper hand in data management.
Here are the screen shots of all tabs:
I would be rude if I don't mention Prakhar Prasad in this blog. Also acknowledging all previous names mentioned under label slamBook.
[github link to this commit]
Showing posts with label Qt. Show all posts
Showing posts with label Qt. Show all posts
Tuesday, July 12, 2011
Thursday, July 7, 2011
Documentation to slamBook
some Qt stuff:
Suppose in Image tab, I paste a URI and click attach button(or press Alt+t) a signal 'click()' is generated by this->ui->pushButton_7, ui being the present object, then it requires this to be acted upon by a SLOT [or a function, written specifically for acting to a SIGNAL] called imageView().
$ qmake slamBook.pro
$ make
and Run the output file:
$./slamBook
Signals and slots are used for communication between objects.I have implemented it using
QObject::connect( sourceObj , SIGNAL(typeOfSignalGenerated()) , destinationObj, SLOT(actionToBeInitiatedForSignal()) );
Suppose in Image tab, I paste a URI and click attach button(or press Alt+t) a signal 'click()' is generated by this->ui->pushButton_7, ui being the present object, then it requires this to be acted upon by a SLOT [or a function, written specifically for acting to a SIGNAL] called imageView().
[lines 78,79 in mainwindow.cpp].
About the code: xml file is automatically generated WYSIWYG feature of Qtcreater coming handy saving a lot of time in User Interface design.
slots:
void Accept() : this SLOT (or function) reads the values from UI and push to an HTML file. Those values are of QString [using *.toStdString()] type, and needs to be converted to std::string, as no operator<< is defined in order to complete file insertions.
void imageView() : it fetches the image from imageURI provided ans shows it in QGraphicsView.
To compile and view the application, you need to:
pull the code from git@github.com:saurabhsar/slamBook.git
or URI
pull the code from git@github.com:saurabhsar/slamBook.git
or URI
$ qmake slamBook.pro
$ make
and Run the output file:
$./slamBook
Happy cute(Qt)-ing.
Slam Book v0.02
Compared to last version, this has the following changes
Hope you enjoy this!
Codes on github: Direct link to this commit
Test
[1] Tirtha for his hints in making imageViewer work [blog].
[2] Rolie, Srishti and Aishwarya, for their feedback on the same.
- a tab exclusively to view image has been added [1].
- now we can switch through textEdit by pressing tab
- some changes in HTML output.
- changes have been made to ambiguous options like 'About', 'You are crazy about', 'Hobbies and interests' to make it more specific [2].
- one line informal description to every textEdit(s).
- the dateTimeEdit is replaced by dateEdit for filling Date Of Birth
Hope you enjoy this!
Codes on github: Direct link to this commit
Test
[1] Tirtha for his hints in making imageViewer work [blog].
[2] Rolie, Srishti and Aishwarya, for their feedback on the same.
Tuesday, July 5, 2011
Slam Book
This is my second project using Qt. Compared to my previous Numerology Calculator, it is a much organized effort having pretty specific files. The whole code was written using Qtcreater as an IDE, Its effectiveness and efficiency made it possible to push out the v0.01 in less than 24 hours form the moment it started.
This application only performs write operations, no pre-existing files generated could be edited or viewed in it. The output is stored as a plain HTML file.
Source Codes
git
Output files of this app
Distributed under GNU GPLv3+
PS: I should mention my friends, who inspired me for this.
![]() |
| a screen shot |
This application only performs write operations, no pre-existing files generated could be edited or viewed in it. The output is stored as a plain HTML file.
Source Codes
git
Output files of this app
Distributed under GNU GPLv3+
PS: I should mention my friends, who inspired me for this.
Monday, June 27, 2011
My first Qt app
So with sparse matrix on stands, and summer haunting, something had to be done. Qt haunted my empty brain this time. Simple thought of 'MY' app made me Qt aficionado. Now the thing was, WHAT. I have always been fascinated by numerology, so the track was set.
About the code: a SLOT had to be written, taking input from QLineEdit, and calculating the numerology subsequently displaying it to QLabel via QSpinBox.
The first version of looked something like this:
With a QSpinBox showing the numerological equivalent of QString ( or user Input ).
It had some bugs, specially with QSpinBox, The value can be changed and was not right to use it as an output widget, so here came my second version:
Its cool, QLabel replacing QSpinBox, responding to shortcuts like Alt+C, Alt+Q
would be uploading the codes soon...
Apart from it, I have added restrictions to window size to avoid defacing of the app on maximizing.
Codes
License: GNU GPLv3+ view
PS: Suggest me some more numerological stuffs, to make this a real cool app, looking forwar
About the code: a SLOT had to be written, taking input from QLineEdit, and calculating the numerology subsequently displaying it to QLabel via QSpinBox.
The first version of looked something like this:
With a QSpinBox showing the numerological equivalent of QString ( or user Input ).
It had some bugs, specially with QSpinBox, The value can be changed and was not right to use it as an output widget, so here came my second version:
Its cool, QLabel replacing QSpinBox, responding to shortcuts like Alt+C, Alt+Q
would be uploading the codes soon...
Apart from it, I have added restrictions to window size to avoid defacing of the app on maximizing.
Codes
License: GNU GPLv3+ view
PS: Suggest me some more numerological stuffs, to make this a real cool app, looking forwar
Subscribe to:
Posts (Atom)






