What's unique to Qt
Junior High School at Otsuka,
University of Tsukuba
“Ubuntu Japanese Translators” team
luyikei
盧 亦愷
Self Introduction①
・ I was born in Fukushima in 1997.
・ Now I live in Tokyo.
・ When I began to use a computer at age 6,
I ...
Self Introduction②
・ My first computer language is HTML.
→Since I was 4th grade.
・ My second computer language is Visual B...
Contents
・ My first Linux
・ Why do I use Linux
・ How I develop GUI application on Linux
・ Visual C++ 2010 vs Qt4
・ Qt vs G...
❶ My first Linux
・ I will talk about my Linux for the first time.
One day...
・ I was using computer with Windows.
&
SOTEC A4170AV Windows XP SP2
Ahhhhhhhhhhhhhhhhhh!
After a few days.
・ I checked my computer with Nortn Anti Virus...
Ahhhhhhhhhhhhhhhhhhhhh!
VS Virus
360X
My first solution is ...
・ Recoveried with Symantec Ghost
After few weeks...
・ Again!
My second solution is...
・ Memtest86.
Give up!
・ I rescued my data from my computer with KNOOPIX live cd.
→This time was first time to use Linux.
・ I managed to...
Now
I brought a new computer, and I installed Kubuntu.
❷ Why do I use Linux?
・ The reason is simple.
①Ubuntu is easy to use!!!!!!!!!!!!!!!!!!!!
②I don't like Windows design.
③To...
❸How I develop GUI application on
Linux
My first GUI programming.
・ My first GUI programming is Visual Basic.
→It is easy and quick. But...
Oh my God!
・ My software can't working on Linux!
on
Visual Studio 2010
(.net framework)
Linux
I hope ...
・ I want to develop software that runs
both on Windows and on Linux.
My solution is...
→Learning Qt programming.
・ Qt is a cross-platform application
framework .
・ Qt's native language is C++.
Qt works on ...①
Qt works on the following platforms:
・ Windows
・ Windows CE
・ Mac OS X
・ Symbian
・ Embedded Linux
・ X Win...
Qt works on ...②
External ports:
→Since Nokia opened the Qt source code to
the community on Gitorious various ports have
b...
Qt is used by ...
KDE
Ubuntu Unity 2D
Adobe Photoshop Elements
Adobe After Effects CS5
Adobe Premiere Pro CS5
Autodesk May...
Qt can fit your PC's Theme
Easy program developed by Qt①
・ I will make the program that can change
letters on the button.
Step1
・ Set the button on the form.
Step2
・ Right-click on an button, and select “Go to slot...”
Step3
・ Select “clicked()”
Step4
・ Write code “ui->puchButton->setText(“aaa”);”
Step5
Clicked
・ It's complete. Run!
Easy program developed by Qt②
・ I will make the software without writing
any code.
Step1
・ Set QDial on a form.
Step2
・ Set QSlider on the form too.
Step3
・ Connect Qdial with QSilder.
Step4
Setting up the SIGNAL and SLOT
SIGNAL: QDial - valueChanged
SLOT: Qslider - setValue
Step5
・
Done!
valueChanged
❹Visual C++ 2010 vs Qt4
・ Round1: IDE
・ Round2: Speed
・ Round3: Other
Round1 : IDE
・ Visual Studio IDE
Round1 : IDE
・ Qt Creator
Code completion
・ Qt Creator ・ Visual Studio 2010 IDE (C+
+/CLI)
It hasn't code completion.!!
Layout
・ Qt Creator ・ Visual Studio 2010 IDE (C+
+/CLI)
・ Many layout tools
・ It doesn't has good layout
tools.
Round2: Speed
・ I'll compare the speed of Visual C++ 2010 with
that of Qt4
・ Qt4 Code ・ Visual C++ 2010 Code
The resault is...
・ Qt4 ・ Visual C++ 2010
18
・ Qt4
2 SecondSecond
Wow!
Round 3 Other
・ font
Qt Creator Visual Studio IDE
Which is better?
enlargement
Qt4 Visual C++ 2010
Web Rendering engine
・ Qt4 is Webkit ・ Visual C++ 2010 is Trident
What is webkit?
・ Webkit is used by Safari , Google Chrome
≒
Actually
・ WebKit's HTML and JavaScript code
originally began as a fork of the KHTML and
KJS libraries from KDE,
・ KHTML i...
How about Trident?
・ Trident is used by Internet Explorer. X-)
I have built Simple Browser
With Qt4 With Visual C++ 2010 (C++/CLI)
And Judgment Browser type by Java
Script
<SCRIPT type="text/javascript">
var userAgent = window.navigator.userAgent.toLowe...
Resualt
・ Qt Browser is...
Safari
・ Visual C++ Browser is...
Internet Explorer 7
Which Is Better?
Acid2 Browser Test
Acid2 is a test page published and promoted by the Web
Standards Project to expose web page rendering f...
Result is...
Ahhhhhhhhhhhhhh!
Acid 3 Browser Test
Acid3 test is a web test page from the Web Standards Project
that checks a web browser's compliance wi...
Result is...
Ahhhhhhhhhhhhhh!
Support languages
・ Qt4
・ Ada
・ C++
・ C# & .NET
・ D
・ Haskell
・ Harbour
・ Java
・ Lisp
・ Lua
・ Visual Studio
・ Visual Basic...
You can develop software with Qt now!
How about other GUI tool kit?
❺ Qt vs GTK+
vs
GTK+ works on ...
Official
・ X Window System
・ Windows
・ Mac OS X
Developing...
・ HTML5
・ Wayland GTK+ is lesser than Qt.
...
IDE
Qt Creator AnjutaQt Creator
GTK+ doesn't have an official IDE.
And It's not easy to use than Qt
Creater.
Hello World Program
・ Qt
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel label("H...
GTK+ is ...
#include <gtk/gtk.h>
int main (int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *label;
gtk_init (&argc,...
Worst weakness
・ If you make a program of GTK+ except for GIMP
and Pidgin, doesn't work Japanese input method on
Windows a...
❻ What is unique to Qt4?
Code less.
・ As I have already mentioned before, Qt is code
less.
SIGNAL and SLOT
・ The mechanism of SIGNAL and SLOT,
We don't need any code often!
Create more.
・ Qt has a good IDE that Qt Creater!
Deploy everywhere.
・ As I have already mentioned before,Qt is a cross-
platform application framework .
Thank you!
・ Thank you for listening!
I'll be happy if you like qt!
Upcoming SlideShare
Loading in …5
×

What's unique to Qt

645 views

Published on

At LinuxCon Japan 2012 Linux Community 101 For Students.
What's unique to Qt.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
645
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

What's unique to Qt

  1. 1. What's unique to Qt Junior High School at Otsuka, University of Tsukuba “Ubuntu Japanese Translators” team luyikei 盧 亦愷
  2. 2. Self Introduction① ・ I was born in Fukushima in 1997. ・ Now I live in Tokyo. ・ When I began to use a computer at age 6, I had a mouse in my right hand, and a baby bottle in my left hand
  3. 3. Self Introduction② ・ My first computer language is HTML. →Since I was 4th grade. ・ My second computer language is Visual Basic. →Since I was 7th grade. ・ My third computer language is Python →Since I was 8th grade. ・ I love Qt! →Since I was 9th grade.
  4. 4. Contents ・ My first Linux ・ Why do I use Linux ・ How I develop GUI application on Linux ・ Visual C++ 2010 vs Qt4 ・ Qt vs GTK+ ・ What is unique to Qt4?
  5. 5. ❶ My first Linux ・ I will talk about my Linux for the first time.
  6. 6. One day... ・ I was using computer with Windows. & SOTEC A4170AV Windows XP SP2
  7. 7. Ahhhhhhhhhhhhhhhhhh!
  8. 8. After a few days. ・ I checked my computer with Nortn Anti Virus...
  9. 9. Ahhhhhhhhhhhhhhhhhhhhh! VS Virus 360X
  10. 10. My first solution is ... ・ Recoveried with Symantec Ghost
  11. 11. After few weeks... ・ Again!
  12. 12. My second solution is... ・ Memtest86.
  13. 13. Give up! ・ I rescued my data from my computer with KNOOPIX live cd. →This time was first time to use Linux. ・ I managed to recover my computer by Replacing its memory. old new
  14. 14. Now I brought a new computer, and I installed Kubuntu.
  15. 15. ❷ Why do I use Linux? ・ The reason is simple. ①Ubuntu is easy to use!!!!!!!!!!!!!!!!!!!! ②I don't like Windows design. ③To study server build. ④Ubuntu is light! ⑤Software manage is easy. ⑥Linux is good at study programming
  16. 16. ❸How I develop GUI application on Linux
  17. 17. My first GUI programming. ・ My first GUI programming is Visual Basic. →It is easy and quick. But...
  18. 18. Oh my God! ・ My software can't working on Linux! on Visual Studio 2010 (.net framework) Linux
  19. 19. I hope ... ・ I want to develop software that runs both on Windows and on Linux.
  20. 20. My solution is... →Learning Qt programming. ・ Qt is a cross-platform application framework . ・ Qt's native language is C++.
  21. 21. Qt works on ...① Qt works on the following platforms: ・ Windows ・ Windows CE ・ Mac OS X ・ Symbian ・ Embedded Linux ・ X Window System ・ Wayland
  22. 22. Qt works on ...② External ports: →Since Nokia opened the Qt source code to the community on Gitorious various ports have been appearing. (by wikipedia) ・ OpenSolaris ・ Haiku ・ OS/2 ・ iPhone ・ webOS ・ Amazon Kindle
  23. 23. Qt is used by ... KDE Ubuntu Unity 2D Adobe Photoshop Elements Adobe After Effects CS5 Adobe Premiere Pro CS5 Autodesk Maya 2011 VLC Nuke Google Earth Skype QCad Rosegarden MuseScore
  24. 24. Qt can fit your PC's Theme
  25. 25. Easy program developed by Qt① ・ I will make the program that can change letters on the button.
  26. 26. Step1 ・ Set the button on the form.
  27. 27. Step2 ・ Right-click on an button, and select “Go to slot...”
  28. 28. Step3 ・ Select “clicked()”
  29. 29. Step4 ・ Write code “ui->puchButton->setText(“aaa”);”
  30. 30. Step5 Clicked ・ It's complete. Run!
  31. 31. Easy program developed by Qt② ・ I will make the software without writing any code.
  32. 32. Step1 ・ Set QDial on a form.
  33. 33. Step2 ・ Set QSlider on the form too.
  34. 34. Step3 ・ Connect Qdial with QSilder.
  35. 35. Step4 Setting up the SIGNAL and SLOT SIGNAL: QDial - valueChanged SLOT: Qslider - setValue
  36. 36. Step5 ・ Done! valueChanged
  37. 37. ❹Visual C++ 2010 vs Qt4 ・ Round1: IDE ・ Round2: Speed ・ Round3: Other
  38. 38. Round1 : IDE ・ Visual Studio IDE
  39. 39. Round1 : IDE ・ Qt Creator
  40. 40. Code completion ・ Qt Creator ・ Visual Studio 2010 IDE (C+ +/CLI) It hasn't code completion.!!
  41. 41. Layout ・ Qt Creator ・ Visual Studio 2010 IDE (C+ +/CLI) ・ Many layout tools ・ It doesn't has good layout tools.
  42. 42. Round2: Speed ・ I'll compare the speed of Visual C++ 2010 with that of Qt4 ・ Qt4 Code ・ Visual C++ 2010 Code
  43. 43. The resault is... ・ Qt4 ・ Visual C++ 2010 18 ・ Qt4 2 SecondSecond Wow!
  44. 44. Round 3 Other ・ font Qt Creator Visual Studio IDE Which is better?
  45. 45. enlargement Qt4 Visual C++ 2010
  46. 46. Web Rendering engine ・ Qt4 is Webkit ・ Visual C++ 2010 is Trident
  47. 47. What is webkit? ・ Webkit is used by Safari , Google Chrome ≒
  48. 48. Actually ・ WebKit's HTML and JavaScript code originally began as a fork of the KHTML and KJS libraries from KDE, ・ KHTML is the HTML layout engine developed by the KDE project. ・ It is used by Konqueror. ・ Now Webkit is developed by Apple, KDE, Nokia, Google, etc...
  49. 49. How about Trident? ・ Trident is used by Internet Explorer. X-)
  50. 50. I have built Simple Browser With Qt4 With Visual C++ 2010 (C++/CLI)
  51. 51. And Judgment Browser type by Java Script <SCRIPT type="text/javascript"> var userAgent = window.navigator.userAgent.toLowerCase(); var appVersion = window.navigator.appVersion.toLowerCase(); if (userAgent.indexOf("msie") > -1) { if (appVersion.indexOf("msie 6.0") > -1) { alert("IE6"); } else if (appVersion.indexOf("msie 7.0") > -1) { alert("IE7"); } else if (appVersion.indexOf("msie 8.0") > -1) { alert("IE8"); } else { alert("Unknown"); } } else if (userAgent.indexOf("firefox") > -1) { alert("Firefox"); } else if (userAgent.indexOf("opera") > -1) { alert("Opera"); } else if (userAgent.indexOf("chrome") > -1) { alert("Google Chrome"); } else if (userAgent.indexOf("safari") > -1) { alert("Safari"); } else { alert("Unknown"); }
  52. 52. Resualt ・ Qt Browser is... Safari ・ Visual C++ Browser is... Internet Explorer 7
  53. 53. Which Is Better?
  54. 54. Acid2 Browser Test Acid2 is a test page published and promoted by the Web Standards Project to expose web page rendering flaws in web browsers and other applications that render HTML. Correct result
  55. 55. Result is...
  56. 56. Ahhhhhhhhhhhhhh!
  57. 57. Acid 3 Browser Test Acid3 test is a web test page from the Web Standards Project that checks a web browser's compliance with elements of various web standards, particularly the Document Object Model (DOM) and JavaScript. Correct result
  58. 58. Result is...
  59. 59. Ahhhhhhhhhhhhhh!
  60. 60. Support languages ・ Qt4 ・ Ada ・ C++ ・ C# & .NET ・ D ・ Haskell ・ Harbour ・ Java ・ Lisp ・ Lua ・ Visual Studio ・ Visual Basic ・ Visual C# ・ Visual C++ ・ Perl ・ PHP ・ Python ・ QML ・ R ・ Ruby ・ Scheme ・ Tcl ・ Qt4 wins landslide victory!!!
  61. 61. You can develop software with Qt now!
  62. 62. How about other GUI tool kit?
  63. 63. ❺ Qt vs GTK+ vs
  64. 64. GTK+ works on ... Official ・ X Window System ・ Windows ・ Mac OS X Developing... ・ HTML5 ・ Wayland GTK+ is lesser than Qt. 15 5:
  65. 65. IDE Qt Creator AnjutaQt Creator
  66. 66. GTK+ doesn't have an official IDE. And It's not easy to use than Qt Creater.
  67. 67. Hello World Program ・ Qt #include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world!"); label.show(); return app.exec();
  68. 68. GTK+ is ... #include <gtk/gtk.h> int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *label; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); label = gtk_label_new ("Hello, World"); gtk_container_add (GTK_CONTAINER (window), label); gtk_widget_show_all (window); gtk_main (); return 0; }
  69. 69. Worst weakness ・ If you make a program of GTK+ except for GIMP and Pidgin, doesn't work Japanese input method on Windows and Mac OS X
  70. 70. ❻ What is unique to Qt4?
  71. 71. Code less. ・ As I have already mentioned before, Qt is code less.
  72. 72. SIGNAL and SLOT ・ The mechanism of SIGNAL and SLOT, We don't need any code often!
  73. 73. Create more. ・ Qt has a good IDE that Qt Creater!
  74. 74. Deploy everywhere. ・ As I have already mentioned before,Qt is a cross- platform application framework .
  75. 75. Thank you! ・ Thank you for listening! I'll be happy if you like qt!

×