Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.6k Topics 35.5k Posts
  • From "example" to project...?

    Unsolved
    2
    0 Votes
    2 Posts
    270 Views
    JKSHJ
    @AnneRanch said in From "example" to project...?: Actually (the old fart ) cannot remember how to get to "git" repository from this screen.. You got that window because you selected File > New File or Project... > Import Project > Git Clone Is there a way to skip retrieving "git" repository directly from finding the example ? Yes. Click the example image directly without clicking the File menu.
  • How to implement new signal / slot ?

    Unsolved
    2
    0 Votes
    2 Posts
    322 Views
    JKSHJ
    @AnneRanch said in How to implement new signal / slot ?: I am looking for something like flow chart add "slot " (declaration ? ) to class header under private slots: void on_actionAddWindow_triggered(); // add void on_TEST_Action(); code "slot" (definition ?) in class .cpp file etc.... The steps you described above are correct for slots. You do exactly the same thing as if you're implementing a new function/method. Just make sure that the name and parameters in the .h file match those in the .cpp file: // .h MainWindow : public QMainWindow { /* ... */ private slots: void on_actionAddWindow_triggered(); }; // .cpp void MainWindow::on_actionAddWindow_triggered() { // Add your logic here } I cannot find anywhere how to add new signal / slot utilizing BOTH QtCreator and QDesigner. Qt Designer is mainly for setting the visual layout. You don't need it to implement new signals/slots.
  • How do I access / load icon in QtCreator ? From "theme path" to " theme name "?

    Unsolved
    4
    0 Votes
    4 Posts
    745 Views
    sierdzioS
    I don't understand the why you mention theme name at all, sorry. "fromTheme" simply means "give me an icon from system theme" or "give me a standard system icon". The method returns an icon (ready to use), not path - there is no need to convert icon to theme or anything like that. Or I'm missing your point.
  • Qt Creator 4.14.2 completely unusable (Debian)?

    Solved
    3
    0 Votes
    3 Posts
    489 Views
    DiracsbracketD
    @jsulm dirac@busterPC:~/Qt/Tools/QtCreator/bin$ QT_DEBUG_PLUGINS=1 ./qtcreator Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. QFactoryLoader::QFactoryLoader() checking directory path "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archreq": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("eglfs") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archreq": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimalegl") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" Found metadata in lib /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/dirac/Qt/Tools/QtCreator/bin/platforms" ... Cannot load library /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/dirac/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)" qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted dirac@busterPC:~/Qt/Tools/QtCreator/bin$ I tried to enable wayland because I libxcb-util.so.1 could not be found, which in turn led me to export the plugins dir. Then, I read https://bugreports.qt.io/browse/QTBUG-88688, which indeed reports that libxcb-util.so.1 does not exist in Debian Buster. So, I created a symlink from libxcb-util.so.0 to it, which seems to have solved the problem. Thanks!
  • Newbie questions: QT creator on Linux Mint can't compile QT project.

    Unsolved
    2
    0 Votes
    2 Posts
    391 Views
    jsulmJ
    @maxmaxmax It looks like you're trying to use QBS? You should rather use QMake (or CMake).
  • Auto Indent Selection - how to remove blank lines ?

    Moved Unsolved
    4
    0 Votes
    4 Posts
    466 Views
    Christian EhrlicherC
    No Qt problem but QtCreator -> moved to 'Tools'
  • Qt error launch application

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    jsulmJ
    @Giacomogr said in Qt error launch application: I have a question, why running the program from the terminal does not give me this error? Different environment I guess, but can't say what exactly causes this. You can compare what "env" prints out in terminal to the Run configuration in QtCreator.
  • How to get rid of the little yellow bulb without disabling code completion?

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    JonBJ
    @JKSH said in How to get rid of the little yellow bulb without disabling code completion?: The humble lightbulb has been upskilling ;-) LOL :)
  • qtcreator fails to start after last update

    Solved
    4
    1 Votes
    4 Posts
    3k Views
    F
    I had the same problem and I solved it by creating a symbolic link, sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1
  • qmake cannot run g++: $$system() not working under Windows 7

    Unsolved
    16
    0 Votes
    16 Posts
    3k Views
    M
    @SGaist this happens to me and is very frustrating. The only solution i have is to create a new w10 account and install a new Qt there. I have no issues on other 2 w10 machines.
  • Pushing project to github

    Solved
    3
    0 Votes
    3 Posts
    382 Views
    F
    @eyllanesc That worked. Many thanks.
  • QSQLite driver not loaded

    Unsolved
    2
    0 Votes
    2 Posts
    267 Views
    kkoehneK
    There can be numerous reasons why the driver is not found. A good start is to define the QT_DEBUG_PLUGINS environment variable. This should print out diagnostic information where Qt is looking for plugins, and also why it fails to load some.
  • 0 Votes
    2 Posts
    3k Views
    sierdzioS
    You need to deploy your application, see https://doc.qt.io/qt-5/windows-deployment.html BTW. Asking an actual question in a thread post helps us answer it properly ;-) I'm only guessing what you are trying to do and what the problem might be...
  • Qt Creator / project organisation / shared files

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    D
    Hello SGaist, thank you very much, this seems to have solved the problem. Compile with CONFIG += staticlib ok. Kind regards, Ralf
  • Qmake not executable while configuring

    Solved
    20
    0 Votes
    20 Posts
    4k Views
    SGaistS
    I was thinking about both cmake and Qt versions.
  • Debug session closed too soon ?

    Unsolved
    1
    0 Votes
    1 Posts
    178 Views
    No one has replied
  • Stack and Break points panels are hidden when entering debug mode

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    andrA
    Does starting with -tcs (or -temporarycleansettings, which is the same) make a difference?
  • Qt Creator crashes on any operations with ui files

    Unsolved
    2
    0 Votes
    2 Posts
    371 Views
    C
    @Crazy-Sage Found it. It was corrupted templates.xml file in $HOME/.designer/ folder, it caused designer to silently crash.
  • Sub window or child window ?

    Unsolved
    3
    0 Votes
    3 Posts
    406 Views
    A
    @AnneRanch Caught by ignoring the details - again, MdiChild inherits form QTextEdit hence its function is not directly related to MDI.
  • Creator warns QML debugging not enabled

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    mzimmersM
    @kkoehne where does QT_QML_DEBUG get defined? [image: 91ba2681-d94a-4c99-912b-a1936b2fadab.png]