LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2016, 01:32 AM   #1
a22an
LQ Newbie
 
Registered: Oct 2015
Location: front of laptop
Distribution: opensuse
Posts: 18

Rep: Reputation: Disabled
beginner c++ qml qt questions?


i am new to c++ and qt.

please advice me: (short answer if you can)

1- study qml or qt(QApplication) for c++ dektop application gui?
2- study qml or qt(QApplication) for c++ mobile application gui?
3- can i make windows application (exe file) when i edit the program in ubuntu?
4- how to make exe file? (please give me a link - web page)
 
Old 01-20-2016, 01:43 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
1 and 2 --- yes

3 is WHY

4 is
https://www.visualstudio.com/en-us/v...mepage-vs.aspx

but linux code normally is build on MS Windows using MinGW
and the same linux Auto tools
http://www.mingw.org/

mingw and VS can blth be installed
BUT YOU CAN NOT!!!! mix the headers and VS can not "see" Mingw
and Mingw can not "see" the VS development code

Last edited by John VV; 01-20-2016 at 01:45 AM.
 
1 members found this post helpful.
Old 01-20-2016, 01:46 AM   #3
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by a22an View Post
i am new to c++ and qt.

please advice me: (short answer if you can)

1- study qml or qt(QApplication) for c++ dektop application gui?
2- study qml or qt(QApplication) for c++ mobile application gui?
3- can i make windows application (exe file) when i edit the program in ubuntu?
4- how to make exe file? (please give me a link - web page)
1 & 2, both since they play together, but it depends heavily on what you are planing to do.
you can start with QML dialogs and extend them with C++ after while when working throught the Qt examples

3 & 4, crosscompile mingw are your keywords, rather complicated and time consuming with Qt, so it's simpler nowadays to have a windows in a virtual machine
 
1 members found this post helpful.
Old 01-20-2016, 01:50 AM   #4
a22an
LQ Newbie
 
Registered: Oct 2015
Location: front of laptop
Distribution: opensuse
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
1 and 2 --- yes

3 is WHY

4 is
https://www.visualstudio.com/en-us/v...mepage-vs.aspx

but linux code normally is build on MS Windows using MinGW
and the same linux Auto tools
http://www.mingw.org/

mingw and VS can blth be installed
BUT YOU CAN NOT!!!! mix the headers and VS can not "see" Mingw
and Mingw can not "see" the VS development code
1,2 yes mean qml or qt?
3, 4 i dont want to use visualstudio
 
Old 01-20-2016, 01:53 AM   #5
a22an
LQ Newbie
 
Registered: Oct 2015
Location: front of laptop
Distribution: opensuse
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
1 & 2, both since they play together, but it depends heavily on what you are planing to do.
you can start with QML dialogs and extend them with C++ after while when working throught the Qt examples

3 & 4, crosscompile mingw are your keywords, rather complicated and time consuming with Qt, so it's simpler nowadays to have a windows in a virtual machine

i want to make a program to school(big program)
what about the future qml or qt?

Last edited by a22an; 01-20-2016 at 01:54 AM.
 
Old 01-20-2016, 02:14 AM   #6
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by a22an View Post
i want to make a program to school(big program)
what about the future qml or qt?
there is no either or. QML plays nicely together with C++ and vice versa in Qt.
QML is a part of Qt.
you camk make GUIs with QML, you can use java script in there, but also extend it with C++

start small, work through the tutorials on the homepage
http://doc.qt.io/qt-5/qtexamplesandtutorials.html

start with the QML (Qt Quick) tutorial and examples.
 
1 members found this post helpful.
Old 01-20-2016, 07:21 AM   #7
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
It would be best to compile for Windows in Windows. The only compiler you have available if not MSVC is MinGW. See http://doc.qt.io/QtSupportedPlatforms/index.html
 
Old 02-02-2016, 10:31 AM   #8
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 703

Rep: Reputation: 111Reputation: 111
Never tried this; but you _could_ try to compile with wine (http://www.winehq.org); with this you should be able to create a windows executable; Of course, the proper libraries (qt) have to be installed in your wine environment as well.

Other than that, you can also create a virtual machine, install Qt (and the builder stuff) and compile your project there.

since wine is an implementation of the windows api for various operating systems (including windows and mac) it might actually be a nice approach...
 
  


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
some beginner questions Woomera Linux - Newbie 4 08-30-2010 04:42 AM
Beginner questions phantom_cyph Solaris / OpenSolaris 16 06-08-2007 03:51 PM
Beginner's questions cy88 Linux - Newbie 11 08-30-2006 08:56 AM
Questions from a beginner... Firebar Slackware 13 05-10-2006 09:34 AM
More questions from a beginner weng Linux - General 3 12-20-2003 01:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:22 AM.

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