Skip to content
  • 138k Topics
    701k Posts
    Q

    I’m writing my own messenger and I need to make 2 forms with an input and a main window. For this I decided to use qstackedlayout which will be linked to qwidget. All descendants of the form class (entrance or main window - no difference) are displayed normally, but the widget itself is not.

    This is the window constructor code (which is from qwidget):

    MainWindow::MainWindow(QWidget* parent) : QWidget(parent) { m_net = new NetworkController(this); m_mainScene = new MainScene(this, m_net); m_loginScene = new LoginScene(this, m_net); m_stackLayout = new QStackedLayout(this); connect(m_net, SIGNAL(succesfullLogin(QUuid)), this, SLOT(on_succesfullLogin(QUuid))); connect(m_net, SIGNAL(succesfullLogin(QUuid)), m_mainScene, SLOT(on_succesfullLogin(QUuid))); connect(m_net, SIGNAL(succesfullLogin(QUuid)), m_loginScene, SLOT(on_succesfullLogin(QUuid))); connect(m_net, SIGNAL(lostConnection()), this, SLOT(on_lostConnection())); m_stackLayout->addWidget(m_loginScene); m_stackLayout->addWidget(m_mainScene); m_stackLayout->setCurrentIndex(0); }

    When you run it you get the following:
    ed7c4fbf-1f7d-4ad7-a4d7-2542e11b714f-image.png

    But in qt designer it looks like this:
    7f08e07b-c84f-4bd6-8058-e6e5caf40bd9-image.png

    MainScene and LoginScene are just classes inherited from qwidget, in their constructor I just call setupUi(this) and that’s it

    I can’t figure out what I’m doing wrong for a long time, I hope you can help

  • Jobs, project showcases, announcements - anything that isn't directly development
    4k Topics
    22k Posts
    G

    hmm missed the (this=) in QItemSelectionRange::top (this=) ...

  • Everything related to designing and design tools

    95 Topics
    284 Posts
    T

    True TableView and TreeView tooling is missing - create a report that you expect it at https://bugreports.qt.io/

  • Everything related to the QA Tools

    48 Topics
    138 Posts
    G

    and the program stay at the front, and he don't flick to the button where my wish object what i need to go into is

  • Everything related to learning Qt.

    363 Topics
    2k Posts
    P

    Thanks @Emilia_Qt ! If it's planned to happen this year then in it's all fine.

  • 2k Topics
    12k Posts
    Pl45m4P

    @JonB

    I think it's some kind of hint for the reader to understand the source code better without browsing the whole class.
    Like:

    in some class.h where someFunction(int a, int b, float c) is declared

    void someFunction(int a, int b, float c);

    and (if I'm correct) everywhere the function is used, on every call, the code browser adds the names from the header, so you know right away what this

    // some code // ... someFunction(42, 42, 13.37); // ...

    means.

    With the hint it looks like:
    ( imagine meaningful names there :D )

    someFunction( [ a ]: 42, [ b ]: 42, [ c ]: 13.37);

    Therefore I don't think it's C++ :)
    Btw: I also like woboq to check Qt source code :)

  • 4k Topics
    17k Posts
    D

    こんにちは!

    Qt を使用して構築されたアプリケーションを配布する場合、いくつかの重要なことを宣言する必要があります。 特に、Qt を使用していることを明確にし、リバース エンジニアリングに関するポリシーを述べてください。

    Qtの使用を明示的に指定する必要がある
    Qt はオープンソース ライブラリであり、ライセンス条項が適用されます。 Qt ライセンスには GPL、LGPL、商用ライセンスがありますが、使用するライセンスによって使用方法を指定する方法が異なります。 Qt の使用方法は通常、アプリケーションのヘルプまたはバージョン情報セクションに説明されています。

    リバースエンジニアリングポリシー
    リバース エンジニアリングに対するポリシーは、アプリの利用規約に明示的に記載されている場合があります。 これにより、アプリケーションの使用方法に関するルールをユーザーに明確に示すことができます。

    また、カウンターストライクをプレイするという新しい趣味を発見したことも共有したいと思います。 ここでは、さまざまなゲームモードの存在と、スキンを適用して武器をカスタマイズできる機能が気に入っています。 csgo スキン 値段 プラットフォームのおかげで、最高のスキンを安く手に入れることができ、この趣味がゲームプレイへの興味を補ってくれています。

    あなたの幸運を祈ります!

  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k Topics
    10k Posts
    T

    Hi, I'm a software engineer working on a project integrating VAR-SOM-MX8 SOM (with NXP-IMX8QM controller).
    I've been using Qt in my development environment, but I find the process cumbersome.
    Currently, I need two different desktop computers, one for development (Windows) and one for compiling (Ubuntu Linux).
    I'm seeking a way to streamline the process by downloading a cross-compiler kit for Qt-Creator on my Windows PC to compile directly for VAR-SOM-MX8.
    My VAR-SOM OS is of Linux YOCTO for Variscite, NXP i.MX Release Distro 4.14-sumo (imx8qm-var-som).
    Qt version I need this support is: 5.10.1
    Qt Creator: 4.5.1