Welcome mode missing and QtQuick vs QtWidget?



  • I have been using QtCreator IDE to edit, build, debug C++ on Ubuntu gcc/gdb environment with success. I would like to learn to build GUIs that act as interface to my C++ code, so I am starting to go through the "Getting Started" section at: http://qt-project.org/doc/qtcreator-3.2/index.html. But I can't run "Examples" because QtCreator does not open in "Welcome" mode.

    Also, I next plan to look at the "Tutorials" in Getting Started.
    Do I want to look at the Qt Quick or the Qt Widget stuff? My goal is to create user interfaces to my underlying C++ code. So I imagine I want places that users can choose or enter data, click buttons that launch background calculations, and display results.

    Any help/avice appreciated.



  • Welcome screen in qtcreator uses opengl. It is possible that you don't have correct opengl drivers, libraries installed.
    Usually qtcreator complains about opengl issues in a console.


  • Moderators

    Hi,

    [quote author="Don Slowik" date="1415649254"]I have been using QtCreator IDE to edit, build, debug C++ on Ubuntu gcc/gdb environment with success. I would like to learn to build GUIs that act as interface to my C++ code, so I am starting to go through the "Getting Started" section at: http://qt-project.org/doc/qtcreator-3.2/index.html. But I can't run "Examples" because QtCreator does not open in "Welcome" mode.[/quote]What happens when you click the "Welcome" button on the top-left corner of Qt Creator?

    Also, are you running in a virtual machine? I know that VirtualBox had some problems with the Welcome mode (and Qt Quick in general)

    [quote author="Don Slowik" date="1415649254"]Also, I next plan to look at the "Tutorials" in Getting Started.
    Do I want to look at the Qt Quick or the Qt Widget stuff? My goal is to create user interfaces to my underlying C++ code. So I imagine I want places that users can choose or enter data, click buttons that launch background calculations, and display results.[/quote]If you want to write C++ code, Qt Widgets is easier to get started with.



  • I do not see any OpenGL issues in the 'issues' console or any other window.

    There is no "Welcome" button.

    I am running QtCreator directly on Ubuntu 14.04, not on any virtual machine.

    Qt Widgets is sounding better.


  • Moderators

    [quote author="Don Slowik" date="1416407304"]There is no "Welcome" button.[/quote]That's odd.

    What version of Qt Creator is it? (Help -> About Qt Creator)

    How did you install Qt Creator?



  • Qt Creator 3.2.1
    Based on Qt 4.8.6 (GCC 4.8.2, 64 bit)

    I installed it via the synaptic package manager (uses apt-get) on Ubuntu.

    What would I be missing by skipping the "Examples" and going straight to the Qt Widget tutorials?



  • Qt Creator 3.2.1
    Based on Qt 4.8.6 (GCC 4.8.2, 64 bit)

    I installed it via the synaptic package manager (uses apt-get) on Ubuntu.

    What would I be missing by skipping the "Examples" and going straight to the Qt Widget tutorials?


  • Moderators

    [quote author="Don Slowik" date="1416583817"]Based on Qt 4.8.6 (GCC 4.8.2, 64 bit)[/quote]Ah, that explains it.

    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.

    [quote author="Don Slowik" date="1416583817"]What would I be missing by skipping the "Examples" and going straight to the Qt Widget tutorials?[/quote]You'll miss out the ability to launch examples from within the IDE. However, you can still get to them manually so it's no big deal.

    Anyway, http://qt-project.org/doc/qtcreator-3.2/index.html teaches you how to use the IDE. You'll probably benefit more from reading a tutorial that teaches you how to develop an application:


  • Moderators

    [quote author="Don Slowik" date="1416583817"]Based on Qt 4.8.6 (GCC 4.8.2, 64 bit)[/quote]Ah, that explains it.

    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.

    [quote author="Don Slowik" date="1416583817"]What would I be missing by skipping the "Examples" and going straight to the Qt Widget tutorials?[/quote]You'll miss out the ability to launch examples from within the IDE. However, you can still get to them manually so it's no big deal.

    Anyway, http://qt-project.org/doc/qtcreator-3.2/index.html teaches you how to use the IDE. You'll probably benefit more from reading a tutorial that teaches you how to develop an application:



  • [quote author="JKSH" date="1416587896"]
    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.[/quote]
    That does explain it. That wasn't in the documentation here:
    http://qt-project.org/doc/qtcreator-3.2/creator-build-example-application.html

    [quote author="JKSH" date="1416587896"]
    Anyway, http://qt-project.org/doc/qtcreator-3.2/index.html teaches you how to use the IDE. You'll probably benefit more from reading a tutorial that teaches you how to develop an application:

    Yes, I'm going through the tutorials. I'm doing:
    http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html
    which relates to the Qt Widgets vs. Qt Quick/QML. I thought also I should stick to the 3.2 doc since that's the version I'm running..



  • [quote author="JKSH" date="1416587896"]
    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.[/quote]
    That does explain it. That wasn't in the documentation here:
    http://qt-project.org/doc/qtcreator-3.2/creator-build-example-application.html

    [quote author="JKSH" date="1416587896"]
    Anyway, http://qt-project.org/doc/qtcreator-3.2/index.html teaches you how to use the IDE. You'll probably benefit more from reading a tutorial that teaches you how to develop an application:

    Yes, I'm going through the tutorials. I'm doing:
    http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html
    which relates to the Qt Widgets vs. Qt Quick/QML. I thought also I should stick to the 3.2 doc since that's the version I'm running..


  • Moderators

    [quote author="Don Slowik" date="1416668260"]
    [quote author="JKSH" date="1416587896"]
    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.[/quote]
    That does explain it. That wasn't in the documentation here:
    http://qt-project.org/doc/qtcreator-3.2/creator-build-example-application.html
    [/quote]That doesn't belong in the Qt Creator documentation. Qt 4.8 is very old now, and should only be used to maintain legacy applications.

    What repository did your Synaptic package come from? It doesn't sound like the official Ubuntu-endorsed version.

    • Ubuntu 14.10 officially provides Qt Creator 3.1.1 based on Qt 5.3.0
    • Ubuntu 14.04 officially provides Qt Creator 3.0.1 based on Qt 5.2.1

    [quote author="Don Slowik" date="1416668260"]Yes, I'm going through the tutorials. I'm doing:
    http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html
    which relates to the Qt Widgets vs. Qt Quick/QML. I thought also I should stick to the 3.2 doc since that's the version I'm running..[/quote]Note the difference between:

    • Qt Creator (the IDE), and
    • Qt (the library)

    Qt (the library) is what you need to create applications.

    Qt Creator (the IDE) is a tool that integrates Qt (the library), your text editor, your compiler, etc. -- it makes it easier for you to use Qt (the library) to create applications.

    You can use Qt Creator to develop applications using multiple different version of Qt at the same time -- from Qt 4.x to Qt 5.y. Thus, Qt Creator's documentation does not apply to a specific version of Qt.

    Also, Qt Creator's documentation doesn't go in-depth into what you can do with Qt. It's not important at the beginning, but once you start using more advanced features in Qt, you should use the documentation for Qt, not Qt Creator.

    Anyway, welcome to the world of Qt, and all the best with your project!


  • Moderators

    [quote author="Don Slowik" date="1416668260"]
    [quote author="JKSH" date="1416587896"]
    The Welcome screen is written using Qt Quick 2, which is only available with Qt 5.0 or later. Ubuntu built Qt Creator using Qt 4.8, which precludes support for the Welcome screen.[/quote]
    That does explain it. That wasn't in the documentation here:
    http://qt-project.org/doc/qtcreator-3.2/creator-build-example-application.html
    [/quote]That doesn't belong in the Qt Creator documentation. Qt 4.8 is very old now, and should only be used to maintain legacy applications.

    What repository did your Synaptic package come from? It doesn't sound like the official Ubuntu-endorsed version.

    • Ubuntu 14.10 officially provides Qt Creator 3.1.1 based on Qt 5.3.0
    • Ubuntu 14.04 officially provides Qt Creator 3.0.1 based on Qt 5.2.1

    [quote author="Don Slowik" date="1416668260"]Yes, I'm going through the tutorials. I'm doing:
    http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html
    which relates to the Qt Widgets vs. Qt Quick/QML. I thought also I should stick to the 3.2 doc since that's the version I'm running..[/quote]Note the difference between:

    • Qt Creator (the IDE), and
    • Qt (the library)

    Qt (the library) is what you need to create applications.

    Qt Creator (the IDE) is a tool that integrates Qt (the library), your text editor, your compiler, etc. -- it makes it easier for you to use Qt (the library) to create applications.

    You can use Qt Creator to develop applications using multiple different version of Qt at the same time -- from Qt 4.x to Qt 5.y. Thus, Qt Creator's documentation does not apply to a specific version of Qt.

    Also, Qt Creator's documentation doesn't go in-depth into what you can do with Qt. It's not important at the beginning, but once you start using more advanced features in Qt, you should use the documentation for Qt, not Qt Creator.

    Anyway, welcome to the world of Qt, and all the best with your project!



  • Right, I added a 'ppa' to my repositories while I was using Ubuntu 12.04 in order to get QtCreator. Then I upgraded to 14.04, and still have that 'ppa' repository where my Qt stuff comes from. Deselecting that repository, Synaptic still tells me that my system is up to date with version 3.2.1 , apparently paired up with Qt 4.8.6 via that ppa repository.
    It's fine with me for now.
    thanks for your help.



  • Right, I added a 'ppa' to my repositories while I was using Ubuntu 12.04 in order to get QtCreator. Then I upgraded to 14.04, and still have that 'ppa' repository where my Qt stuff comes from. Deselecting that repository, Synaptic still tells me that my system is up to date with version 3.2.1 , apparently paired up with Qt 4.8.6 via that ppa repository.
    It's fine with me for now.
    thanks for your help.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.