LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2015, 09:38 AM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Rep: Reputation: Disabled
Linux canvas


I have Ubuntu 14.04

There are many graphic packages but I may be forced to create my own because of the specific task I am dealing with. I am wondering if there is a way to generate a white canvas with the stipulation that I can use X-Y coordinates for input I need. Something very primitive.

Thanks, - A.
 
Old 01-16-2015, 11:43 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Qt should be fine for that, just create a window or app with a white background and then it all depends what you want to do for XY input; i.e. click or click-drag and so forth. But you can get the coordinates of mouse/finger actions and motions via the Qt even interface. Something much smaller is FLTK.

Perhaps this thread should be moved to Linux->Software to get more exposure.
 
1 members found this post helpful.
Old 01-16-2015, 12:22 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
rtmistler, thank you. Is Qt the same as Qt Creator? I just googled for it and found a few websites but nobody seems to explain in simple English what it actually does. Just as an example. Although it says that it is an editor. If I am on the right track, I will be able to try it only tomorrow.

Thanks, A.

Last edited by AlexBB; 01-16-2015 at 12:30 PM.
 
Old 01-16-2015, 12:34 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
QtCreator is part of Qt. Qt overall is a graphics ... framework, or it may be more correct to say it is a set of libraries which you can install.

I configure and build it from source to install it. I also do not use the QtCreator.

Most examples and answers to questions I've received when asking for or seeking help have been in the form of C++ code.

But you can start with the Creator and then choose your direction as you learn more about it.
 
1 members found this post helpful.
Old 01-16-2015, 12:58 PM   #5
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Thank you again. I marked the thread as solved. A.
 
Old 01-17-2015, 04:10 PM   #6
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
OK, it seems I installed Qt library but in the end realized it is commercial package. You have to download a bunch of stuff on top of that as a "FREE TRIAL" then pay $25 a month. Never in the world am I going to do this. I have no confidence it is what I ultimately need. Besides I may need it for a short period of time when my project runs, even if it works. It is unfair to point someone to a clearly commercial application without telling the truth.

rtmistler, you set me up. I suspect you are a part of this business. I unmarked the thread. Now it is UNSOLVED. Besides I have a bunch of trash in my directories. I will also report you.

Last edited by AlexBB; 01-17-2015 at 04:15 PM.
 
Old 01-17-2015, 05:54 PM   #7
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
AlexBB - Qt is a widely used software in the desktop linux world. The KDE desktop, the LXQt desktop, the vlc media player all use it on terms of the free software licensing option. They also provide a nonfree licensing option which costs money - the licensee gets the right to use Qt in nonfree software in return.

No need to accuse somebody of "setting" you up, or to report somebody. If you have a desktop linux installed, chances are that you also already got Qt installed (look for packages like "qtcore" and "qtgui"). For development work, you maybe need additional header files, a compiler (gcc plus Qt's own moc compiler) and an IDE (optional). QtCreator is such a IDE.

And the website of Qt is http://qt-project.org/. I don't know what this indian/british/hosted in ireland domain you found even is, but it's not the Qt rtmistler was talking about.

One smaller option for simple 2D graphics programming tasks could be Tk.

Last edited by cepheus11; 01-18-2015 at 05:32 AM. Reason: I meant IDE not GUI
 
Old 01-17-2015, 06:02 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Qt can be used in an open source form. I also recommended FLTK in case you didn't notice. No I don't work for Qt.
 
Old 01-17-2015, 06:59 PM   #9
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Sorry, perhaps I overreacted. I just don't like downloading anything from the Internet. I am afraid to tell you the truth. Just very leery. I trust Ubuntu and prefer sudo apt-get command. Thanks, - A.
 
Old 01-17-2015, 10:07 PM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
What programming language are you using? Of it is a script, Pyhton, TCL or Perl, Tk might be your friend. The learning curve takes about 20 minutes.

jlinkels
 
Old 01-18-2015, 12:55 PM   #11
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Gfortran, Fortan 90, etc(mostly) & C++. I am trying to make it with gnuplot now since I am more familiar with it. I began looking for alternatives when I realized that I could not get any gnuplots on Ubuntu 14.04 and 13.04 (?) versions, lost quite a bit of time. I think they have bugs gnuplot related. Now I reimaged my laptop with Ubuntu 12.04 and am getting beautiful pictures but I still have a way to go. My tasks are very specific. So my thrust into the unknown (Qt, and others) began before I realized what was going on with gnuplot. Now I seem to be on a right track.

Thank you, - A.
 
Old 01-19-2015, 02:49 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by AlexBB View Post
Sorry, perhaps I overreacted. I just don't like downloading anything from the Internet. I am afraid to tell you the truth. Just very leery. I trust Ubuntu and prefer sudo apt-get command. Thanks, - A.
aptitude (sudo apt-get) downloads from the internet in order to install packages.

Very many people will tell you reasons why not to trust Ubuntu because it reports data back to their server about your system. You can opt out of that, but I do not believe it is the default behavior.

Sounds like you wanted to plot. Granted you did mention XY coordinates, but it wasn't clear if you just wanted to render information or provide a drawing canvas and use XY coordinates, given the title of the thread I guessed drawing canvas. Therefore I would not actually use Qt for that even though there's a graphing library it has, QwtPlot or something, I tried using it once and it was difficult.

gnuplot is very good, in fact I believe the defacto choice for plotting, it's been around for about 20 years.

I did a quick search and here's a wiki showing a number of graphing packages, but you need to check that they are for Linux, GPl, open source, and also free, a good deal of them are. And never used it, but I've heard good reviews of MayaVi.

http://en.wikipedia.org/wiki/List_of_graphing_software

I've used gnuplot which I think is part of the plotutils package.
 
1 members found this post helpful.
Old 01-19-2015, 05:22 PM   #13
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by rtmistler View Post
OMG, never knew that many programs exist. I guessed not even 10% of that. I am missing PGFPlot in that overview. Granted PGFPlot is specialized, but the scope of that table is quite broad anyway.
Quote:
Originally Posted by rtmistler View Post
I've used gnuplot which I think is part of the plotutils package.
The package name is simply gnuplot.

jlinkels
 
  


Reply



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
[SOLVED] Linux Foundation Oil On Canvas Painting Ztcoracat Linux - General 13 06-21-2012 08:18 AM
Can't get HTML canvas to work in IE danielt998 Programming 11 01-04-2011 02:20 AM
Open Canvas? gymnart Linux - General 0 07-27-2007 01:45 PM
I am a blank canvas... jasendorf Linux - Hardware 4 10-13-2004 09:35 AM
Does PCMCIA card Roland Sound Canvas SCP-55 have a Linux driver? polemistes Linux - Hardware 1 03-22-2004 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 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