Skip to content
  • 144k Topics
    722k Posts
    S
    Hi, I am new to Qt Tools. Right now I am just working in non QT projects and trying out qt features as an IDE. SO basically the output in external Terminal does not wait for the command "Press <RETURN> to exit the window", rather it immediately closes. It used to work some time ago but now suddenly it doesn't and I have already tried several things such as the /K "%{CurrentRun:Executable:FilePath}" argument for shell in terminal but to no avail. I even reinstalled QT Creator but it didn't help at all. Using system.pause works, as well as QTextStream in(stdin); in.readLine(); also works but I don't understand how this internal Qt feature for pausing the terminal for output suddenly is now not working, as now it is impossible to check output with the terminal instantly closing by itself. my pro file: TEMPLATE = app CONFIG += console c++17 CONFIG -= app_bundle QT += core SOURCES += main.cpp and the main code: #include <QCoreApplication> #include <QTextStream> #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); cout << "Hello World!" << endl; cout << "What's up?" << endl; int a; cout << "Enter a number: "; cin >> a; cout << "Your number - " << a << endl; // QTextStream in(stdin); // in.readLine(); // system("pause"); return 0; }
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    DeSGuND
    @JonB read post more once and did through qml thanks an answer
  • Everything related to designing and design tools

    127 383
    127 Topics
    383 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    77 213
    77 Topics
    213 Posts
    J
    Hello i am using WinCC OA to develop a qt application. WinCC OA has some custom elements which cannot be detected by squish for example a polygon. Squish is now not able to detect this element with the picker. I know the name of the element but as it is of WinCC OA internal i do not know the type: waitForObject( {"container": "container", "name": "POLYGON1","type": "???","visible": 1} ); How do i get this information? And what to use if unknown? Is there any other way? I mainly just need to click this element. Thanks a lot
  • Everything related to learning Qt.

    382 2k
    382 Topics
    2k Posts
    Ash_QtA
    Hey! Thanks for taking the time to tackle the QML for Beginners challenges! You are right that States could be a good application here to toggle between the business card's 'front' and 'back'! Well done in exploring and implementing this :) One way of stopping the flickering you mentioned is to bind the minimumHeight and maximumHeight properties of the Window to the business card ratio we want: minimumHeight: width / 1.586 maximumHeight: width / 1.586 You can learn more about those here
  • 2k Topics
    13k Posts
    S
    @SGaist applying delegate did not make any difference in opening response. but turning off resizeColumnsToContents made a substantial difference. Now it is basically doing everything I need it to. Now to the fine tunning and clean up. thanks to you all for you input. greatly appreciated.
  • 4k Topics
    18k Posts
    SGaistS
    Bonsoir et bienvenue sur devnet, Si mes souvenirs sont bons, il y avait un souci avec Qt Creator seulement. Pour le mettre à jour, il faut lancer le Maintenance Tool qui se trouve dans le répertoire de l'installation.
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.