Re: [kde-linux] how to link database MYSQL in QT Designer



On Saturday 24 June 2006 10:15, Dominique Wong wrote:
Hello,I am tring to link mysql database in QT Desinger.I have both Mysql
(snip)
the version of QT Designer is 3.1.
I aims to make a GUI,this GUI contains a tree/list ,and I want to show
information from database in MySql in that tree/list. Since I never
did a Linux GUI project,especially with a database,so this really
harasses me a lot.
(snip)
I start QT Designer in Kdevelop,and do not know how to add QT Designer
generated .ui file into my Kdevelop project.Could you give a more detailed
explanation,thank you so much.

Hi Wong,

I never used Kdevelop but I made Qt programs with Developper, its integrated
editor ( or kate for version 4) and the shell.

With Designer version 3 I first create a project (Hello.pro)
Then I create a dialog or main form or widget and add it to the project.
Then write menus, place some stuff on the form, make connections, write some
code
Ask Designer to write a main.cpp file...save all.

Finally from a shell, I cd into that dir, and type the commands:
->qmake Hello.pro this will generate a Makefile
->make this will "uic" your .ui file and generate .h and .cpp files
and also do the "mocing" ( moc_Hello.cpp )
compile, link and produce the executable.
That's all ;0)


I suggest you first try to make a very simple program, look at the tutorial
and examples, use "assistant"... before dealing with MySql.

Happy coding Perry

P.S. Thanks Kevin
Designer has some database aware widgets available

--
BOFH excuse #397: T1's congested due to porn traffic to the news server
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: command line vs gui
    ... >> them better than a GUI. ... >Having seen travel agents working in their shell, ... The travel agents might not be happy using ...
    (comp.os.linux.misc)
  • Re: Great SWT Program
    ... proper GUI editor instead? ... because the up arrow is flanked by empty space on both sides. ... What did you think that "if I press tab" meant? ...
    (comp.lang.java.programmer)
  • Re: It vs ID
    ... for the system to form in step fashion by mutation. ... designer, do not do research, and dispute supported science. ... thread, science starts with evidence, not conjecture. ...
    (talk.origins)
  • TeX and friends (was Re: Sarahs very sad...)
    ... the formatting codes interpreted and applied using other tools appropriate ... which does of course mean that it's easy to write a nice integrated GUI ... documentation, and each document is at least 90% useless to me. ...
    (uk.people.support.depression)
  • Re: zinc performance
    ... >>> Is zinc stable for real time system like vxWorks? ... So I am mostly using code to design my GUI rather ... > I have had the same problem of designer crashing on windows 2000. ... These are different approaches to device configuration. ...
    (comp.os.vxworks)