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.3k Posts
  • Qt Creator doesn't found QtQml.Models 2.1

    1
    0 Votes
    1 Posts
    868 Views
    No one has replied
  • Event happens when it shouldn't

    9
    0 Votes
    9 Posts
    2k Views
    Q
    Only thing that comes to mind, if clean - >qmake didn't help then try delete all build files manually and qmake - >Rebuild All.
  • [SOLVED] Alternative to system()

    4
    0 Votes
    4 Posts
    1k Views
    L
    Thank you ! I will try this out. Edit : I had some trouble with setStandardOutputFile, so I did @QProcess::execute("cmd.exe /C myexecutable -ip <ip> -pw <pw> -othercommand > text.txt");@ and it works ! I was missing the "cmd.exe /C" part.
  • Translation using PyQt and Pylupdate5

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to convert String to Qpushbutton type

    7
    0 Votes
    7 Posts
    2k Views
    M
    Hi SGaist, Thank you for reply.. I am making GUI application in which i have a requirements like 1. I have to handle events from Ui and 2. update processed on Ui. so i am making GUI module for my requirements with some conditions like Module should be configurable. so all events and its actions will be defined in config, code should excite the events as per configurations. for this i should know who is the sender of signals so that i can find sender/ event in config file and excite action as per config.
  • [ANSWERED] Qt Creator Question

    3
    0 Votes
    3 Posts
    807 Views
    M
    I figured it out finally!! (Exactly as it says in the manual, of course!)
  • Does QtCreator 3.1.2 support QtQuick 2.3?

    1
    0 Votes
    1 Posts
    626 Views
    No one has replied
  • Debug build of Qt Creator crash on startup

    4
    0 Votes
    4 Posts
    2k Views
    A
    GDB 7.7 crashes immediately when loading binaries containing certain symbols, see https://sourceware.org/bugzilla/show_bug.cgi?id=17066.
  • Qt Creator 3.1.1, lldb stops correctly but no message

    2
    0 Votes
    2 Posts
    1k Views
    A
    Please open a report at bugreports.qt-project.org and attach the debugger log (contents of right pane of Window->Views->Debugger Log) there.
  • How to add .qmlproject into subdirs .pro project?

    2
    0 Votes
    2 Posts
    1k Views
    A
    You can't. qmake doesn't know about .qmlproject file. You could try to work out a solution based on a TEMPLATE = aux based .pro file.
  • 0 Votes
    2 Posts
    2k Views
    A
    If that's a non-Qt-type a possible reason is Qt Creator's pretty printing trying too hard to extract QObject names from types that aren't QObjects but look similar. You could try 3.2 beta which should fix that particular problem. If that doesn't help, consider opening a bug report at bugreports.qt-project.org and attach the debugger log (contents of right pane of Window->Views->Debugger Log) there.
  • How to get event properties

    2
    0 Votes
    2 Posts
    784 Views
    A
    Use "QObject::sender()":http://qt-project.org/doc/qt-5/qobject.html#sender and "qobject_cast":http://qt-project.org/doc/qt-5/qobject.html#qobject_cast in a slot to get a pointer to the sender.
  • [SOLVED] Building Qt Creator fails

    2
    0 Votes
    2 Posts
    2k Views
    K
    With assistance from the support group at Digia, I was able to solve this issue. For the sake of posterity, here is the procedure I followed to successfully install Qt 5.3.1 and Qt Creator 3.2.1 on CentOS 6.4 64-bit with MySQL support: Please note: This entire process can take a couple of days to complete: @1. Install CentOS 6.4 Basic Server + mysql and web server support. 2. yum update@ There will be hundreds of updates so this may take a several minutes (15 to 20 minutes). Last time I did this, it installed 382 updates. 3. Install dependences for Qt: as root: @yum install libxcb libxcb-devel xcb-util xcb-util-devel yum install flex bison gperf libicu-devel libxslt-devel ruby yum install git yum install gcc-c++ yum install mysql-devel yum install libX11-devel yum install libXrender-devel yum install libusb-devel yum install mesa-libGL-devel@ Install devtools @wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum.repos.d sh -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo' yum install devtoolset-1.1@ Download latest Qt from Git: @git clone git://gitorious.org/qt/qt5.git qt5 cd qt5 git checkout stable perl init-repository@ This will take 30 to 45 minutes. Set the environment By default, CentOS will set the following environmental variables: QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QT_IM_MODULE=xim QTLIB=/usr/lib64/qt-3.3/lib These must be unset before proceeding. @env | grep QT@ QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QT_IM_MODULE=xim QTLIB=/usr/lib64/qt-3.3/lib @unset QTDIR unset QTINC unset QT_IM_MODULE unset QTLIB env | grep QT@ Now set the environment to use dev tools @scl enable devtoolset-1.1 bash@ Configure, build, and install shared version of Qt @cd qt5 ./configure -prefix /Qt/5.3.1_shared -shared -platform linux-g++-64 -opensource -confirm-license -debug-and-release -I/usr/include/mysql -L/usr/lib64/mysql -qt-sql-mysql @ Takes 15 - 30 minutes. make If installing on a multi-core virtual machine, type make -j# where # is the number of cores. Takes 4 to 8 hours. Sometimes best to let it run over night. As root from $HOME/qt5: @make install@ Takes 20 minutes to an hour. @make install docs@ Takes 20 minutes to an hour. Download QtCreator from git From $HOME as development user: @git clone --recursive https://git.gitorious.org/qt-creator/qt-creator.git@ Create build directory for qtcreator @mkdir qt-creator-build cd qt-creator-build@ 10 Set the environment: @scl enable devtoolset-1.1 bash export QTDIR=/Qt/5.3.1_shared export PATH=$QTDIR/bin:$PATH which qmake@ /Qt/5.3.1_shared/bin/qmake Build Qt Creator @qmake -v@ QMake version 3.0 Using Qt version 5.3.1 in /Qt/5.3.1_shared/lib @qmake -r ../qt-creator/qtcreator.pro make@ Takes 5 to 9 hours. Maybe another all nighter.
  • 0 Votes
    4 Posts
    2k Views
    sierdzioS
    Nice, good to hear. Happy further coding :-)
  • QtCreator: kit-specific precompiler macro definitions

    4
    0 Votes
    4 Posts
    4k Views
    K
    You are welcome. Glad to see that my comment helped ;-) qmake is quite powerful, but the documentation and tutorials could benefit from a tune-up.
  • QCA - RSA not supported on Windows without Qt

    8
    0 Votes
    8 Posts
    4k Views
    T
    Uhm, the problem was other version of openssl on my pc and another. Thanks all for answers :)
  • [SOLVED] QtCreater uses different libraries

    4
    0 Votes
    4 Posts
    2k Views
    S
    libexif are not really in development, so I would see, if a update comes. Also, I would get a typical compiling error. I take a look in the QtCreator build environment and I noticed, that it is using another library path. LIBS += -llibexif -Lpath/to/libfolder doesn't work, because it takes first the library in the system folder instead of my version. Thanks all for their help!
  • 0 Votes
    1 Posts
    499 Views
    No one has replied
  • Documentation inside qcreator

    2
    0 Votes
    2 Posts
    813 Views
    sierdzioS
    You need to create QCH documentation (Qt Compiled Help) files, and then add them in Qt Creator's Preferences. To create qch, you can use either the built-in qdoc, or external: Doxygen. Doxygen is recommended for all code that is not Qt itself.
  • Is there a way to eliminate the use of libBotan by QtCreator

    2
    0 Votes
    2 Posts
    797 Views
    sierdzioS
    This is best asked on Qt Creator "mailing list":http://lists.qt-project.org/mailman/listinfo.