UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. utuser
    U
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 4
    • Groups 0

    utuser

    @utuser

    0
    Reputation
    2
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    utuser Unfollow Follow

    Latest posts made by utuser

    • "Type FileDialog unavailable"

      I'm having problems using FileDialog component in Main.qml file.
      When I use the FileDialog {} anywhere in the QML file and build the project in desktop mode, the terminal returns:

      qrc:/Main.qml:111:17: Type FileDialog unavailable
      file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:41:1: module "QtQuick.Controls" version 1.2 is not installed 
           import QtQuick.Controls 1.2 
           ^
      

      and a blank screen is displayed (also on a phone).
      It works when built in qtcreator.

      I'm almost sure I have all the necessary packages installed and imported.
      The same libraries are used in sturmreader app document importer file:
      https://gitlab.com/TronFortyTwo/sturmreader/-/blob/master/ui/qml/ImporterPortable.qml

      My project is using QML and C++.

      I wonder if it means, that some different default version of QtQuick.Controls is set somewhere in the clickable or project settings.

      Thanks for help in advance

      posted in App Development
      U
      utuser
    • [Qml/Python] Using pip packages with Clickable

      Hello.

      I'm starting with UT app development in Python and QML and encountered a problem using pip packages.

      Whenever I want to use manually installed pip packages, using any of its functions yields an AttributeError e.g.:

      PySide2.__version__

      AttributeError: module 'PySide2' has no attribute '__version__'
      

      which returns a PySide2 version, when entered using python3 command line in terminal.

      In Python/QML project, I used sys to embed the PySide2 package:

      import sys
      sys.path.append('lib/python3.8/site-packages')
      
      import PySide2
      

      dir(PySide2) returns

      [__doc__,__loader__,__name__,__package__,__path__,__spec__]
      

      so the __version__ seems inaccessible.

      What could be the reason of it?

      I'm relatively new user in UT app development and I'd like to sorry for any possible non-compliances.

      I'm using Docker container qtcreator ide.

      posted in App Development
      U
      utuser
    • RE: Changing the default version of qtcreator for Clickable

      Thanks for your replies.

      @kugiigi @arubislander
      That's resolves my main doubts.

      Is my setup the current standard and recommendation in UT app developement then?

      @lduboeuf said in Changing the default version of qtcreator for Clickable:

      @utuser Hi do you know that QtCreator 9.0 landed on last clickable image ?.

      I don't know. Just in case it's a joke, I'm a relatively new UT user and even newer in UT app development so I perhaps lack some of the (basic) knowledge yet, though try to make it up.
      But maybe I should't ask before making more research.
      I'd like to thank for sharing the videos on UT app developement though, they were the main reason for me for trying myself in UT development.

      I should have probably rephrased the question in title as it could probably be misleading

      posted in App Development
      U
      utuser
    • Changing the default version of qtcreator for Clickable

      Hello.

      I'm looking for advice on how could I change the default version of QtCreator ide, that gets used\opened after launching sudo clickable ide qtcreator.

      At the moment, the one set is 4.12.4 ("based on Qt 5.12.9 (GCC 5.4.0)"). It's likely the version I installed from apt repository. The reason I decided to install another one (6.4.1, using the official installer) are the QtQuick components, that are inaccessible in the previous one.

      I found a file ~/.clickable/QtProject/qtcreator/qtversion.xml with some of the following content:

        <variable>QtVersion.0</variable>
        <valuemap type="QVariantMap">
         <value type="int" key="Id">2</value>
         <value type="QString" key="Name">Qt %{Qt:Version} in PATH (qt5)</value>
         <value type="QString" key="QMakePath">/usr/lib/qt5/bin/qmake</value>
         <value type="QString" key="QtVersion.Type">Qt4ProjectManager.QtVersion.Desktop</value>
         <value type="QString" key="autodetectionSource">PATH</value>
         <value type="bool" key="isAutodetected">true</value>
      

      and tried to modify it but it didn't bring results.

      I haven't yet tried to reinstall qtcreator or Clickable but maybe there's yet some other way.

      I have qt5 and qt6 installed, Ubuntu 20.

      Thanks for help in advance

      PS. All along I assumed that it's possible to create UBTouch applications using QtCreator6 but I haven't actually found information about it. Is it true?

      posted in App Development
      U
      utuser