Skip to content
  • 1 Votes
    5 Posts
    2k Views
    A

    Thanks so much for posting this result!
    This worked for me in QT 5.14.2

    @seyed said in Android soft keyboard action button:

    NOTE: Action button of the Android soft keyboard is same as return button which you can control it in XML layout file with 'imeOptions' attribute.

    Can you elaborate on this?

    I'm working on Android and am not seeing the 'Done' button changing as expected, but I do see in the QT Docs:

    Note: Not all of these values are supported on all platforms. For unsupported values the default key is used instead.

  • 0 Votes
    7 Posts
    4k Views
    A

    @Coloriez

    In header file you probably have:

    class HelpDialog : public QWidget
    {
    Q_OBJECT

    public:
    HelpDialog(QWidget *parent); // this is declaration of the constructor
    ~HelpDialog();
    ....
    ///

    Every function declared and called implicitly or explicitly needs to be implemented.
    Implementation usually is either provided at the same it was declared at or in cpp file,

    For example
    You could replace HelpDialog(QWidget *parent);
    with
    HelpDialog(QWidget *parent) {};

    This would add implementation which does nothing.

    But this would be a bad idea in this case.
    You probably would want constructor which at least initialize parent. For example you could add in cpp file instead:

    HelpDialog::HelpDialog(QWidget *parent)
    :QWidget( parent )
    {
    };

    I highly recommend re-read C++ book until you understand at least the basics or search for c++ novice forum. Your questions have nothing to do with Qt yet. This is not an offence. But I doubt you will be getting help you need here due to specialization of this forum.

  • 0 Votes
    1 Posts
    579 Views
    No one has replied
  • 0 Votes
    2 Posts
    828 Views
    mrjjM

    Hi and welcome

    Do you mean if you can get/use the same "dialog" or more
    like the concept of how to make something pop up like that?

  • 0 Votes
    2 Posts
    802 Views
    SGaistS

    Hi,

    You would usually use QDataWidgetMapper for such a use case. There's the related examples that show how to do it.

    Hope it helps

  • 0 Votes
    3 Posts
    4k Views
    H

    Hi Thanks for the detailed answer, now the issue solved

  • Icon Dialog

    QML and Qt Quick
    12
    0 Votes
    12 Posts
    8k Views
    HackSawH

    @p3c0 said in Icon Dialog:

    @didu Icon specified through RC_ICONS will not be available at runtime in the code. It is used to set the icon for the executable which is created after compiling.
    In your case you need to store the icon in Qt's Resource System by creating a .qrc file. After that it will be accessible from the code. Eg:

    app.setWindowIcon(QIcon("qrc:/images/logo.ico"));

    Another quick way to test it ls loading the ico file from a physical location. Eg:

    app.setWindowIcon(QIcon("D:/MyIcons/logo.ico"));

    The above should work too.
    But a more practical approach is to use the Resource files. More info here.

    I was facing a similar issue with the icon being loaded successfully from its physical location but not from the resource file. So I tried

    app.setWindowIcon(QIcon(":/Images/IconFile.ico"));

    where "qrc" is removed which worked seamlessly.

  • 0 Votes
    1 Posts
    659 Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    843 Views
    Chris KawaC

    You can't load Qt dlls when you want to simply because they are linked to your program and need to be resolved at startup. That's just how it works. If you were to load Qt dlls when you wanted (e.g. using QLibrary) you would have to also manually resolve addresses of all functions and classes. It's possible but just impractical at this scale.

    But here are two ideas what you could do:

    One way would be to split the app in two. First one would be the loader (the dialog) and it would use QProcess to start the main app when it finishes its work. Handy for updating the main app too as it's a separate file.

    The other idea would be to make your main app a shared library and load it dynamically with QLibrary at the right time. Same benefit as above except an exe and a library instead of two exes.

  • 0 Votes
    9 Posts
    4k Views
    M

    Can you try to comment the line
    OpenFile(filename);

    and use a qDebug there instead, this function could be the problem
    Thanks