LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2011, 07:39 PM   #16
dan2
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by MTK358 View Post
You don't need to know about X to create multi-window applications. In Qt, for example:

Code:
int main()
{
    QApplication app;
    QLabel *label = new QLabel("Test");
    QPushButton *button = new QPushButton("Click Me");
    label.show();
    button.show();
    app.exec();
    return 0;
}
Thanks MTK358.

This is a good example which i should at least try to pursue further (to see, e.g., what support QT has for organizing the windows you create, etc).

If doing the same sort of thing is as easy in gtk (any version), i would appreciate from anybody who feels like it is absolutely trivial to do, a short chunk of example code like this. (But i'm only asking if it really is easy to whip it out---i do not want to ask anybody to do something that is a hassle to write up, as i don't mind looking it up myself. But if it is equally trivial in gtk and obviously so, then i would appreciate knowing this.)

Anyhow, thanks everybody for all the ideas and suggestions.

dan
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-15-2011, 10:10 PM   #17
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by TobiSGD
I use XFCE with a black theme, and since I didn't fiddle with the QT theme yet QT-apps come with a light grey theme
QGtkStyle.

This works perfectly for me…VirtualBox, for example (whose GUI is Qt-based), blends in perfectly with everything else.

Last edited by MrCode; 08-15-2011 at 10:14 PM.
 
Old 08-16-2011, 02:04 AM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by dan2 View Post
If doing the same sort of thing is as easy in gtk (any version), i would appreciate from anybody who feels like it is absolutely trivial to do, a short chunk of example code like this. (But i'm only asking if it really is easy to whip it out---i do not want to ask anybody to do something that is a hassle to write up, as i don't mind looking it up myself. But if it is equally trivial in gtk and obviously so, then i would appreciate knowing this.)
Look at the GTK+ tutorial, particularly the "Hello World in GTK" section.
 
  


Reply

Tags
application, development, document, gui



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Easiest to use linux distro for i486 applecheeks Linux - Newbie 17 03-12-2011 08:26 AM
Easiest Linux Distro? Yull29m Linux - Distributions 40 11-02-2008 06:33 AM
How to write invisible GUI program in Linux with hotkeys to come to foreground? DGMavn Programming 5 04-19-2008 08:09 AM
The Easiest Linux Distro For New User davethegenius Linux - Software 10 12-12-2004 08:46 AM
i need help with installin linux and which distro is the easiest to use lazyassassin8er Linux - Newbie 10 07-01-2004 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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