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
  • [solved] Qt creator can't find opengl headers or I'm missing a package

    3
    0 Votes
    3 Posts
    2k Views
    B
    This is going to be really weird, but I shutdown my computer last night and it works now? So problem solved apparently!
  • [SOLVED] QtCreator can not be used to debug std::libc data types

    2
    0 Votes
    2 Posts
    1k Views
    T
    Error depends on Debug settings of GDB in QtCreator. Default settings for QtCreator 3.3 and newer avoid this issue.
  • QtC autocomplete

    3
    0 Votes
    3 Posts
    860 Views
    A
    As far as I remember, CLion does both points Eclipse does second one. It doesn't look complicated to check that file contains no one reference to declarations in given header, no?
  • Qt Creator fails to debug

    1
    0 Votes
    1 Posts
    758 Views
    No one has replied
  • QtC doesn't call .lib file generating

    7
    0 Votes
    7 Posts
    2k Views
    A
    I'm using something typical, looks working for me #ifdef EXP_STL # define DECLSPECIFIER __declspec(dllexport) # define EXPIMP_TEMPLATE #else # define DECLSPECIFIER __declspec(dllimport) # define EXPIMP_TEMPLATE extern #endif EXPIMP_TEMPLATE template class DECLSPECIFIER std::basic_string<char>; where EXP_STL is defined for dll and undefined for exe the only issue I faced some time ago is an exporting std::list of std::unique_ptr unique_ptr has move init semantics but list requires copy ctor I was using emplace_back for elements filling up and that was working for single project but for the sharing this object between dll and exe (function in dll returns this list to the caller from exe) like this: EXPIMP_TEMPLATE template class DECLSPECIFIER std::list<std::unique_ptr<my_class>>; raise the error - something about deleted copying ctor of unique_ptr, it'd look reasonable in case of list using but here - the declaration only! I can't understand why - this is the only declaration. if I remove declspec this will be built correctly…. [edit: Added missing coding tags: 3 ` before and after SGaist]
  • QT Creator autocomplete for structs and functions from OS X headers

    2
    0 Votes
    2 Posts
    861 Views
    A
    Hello, after a long search I found an unsatisfactory solution. The directories in which the headers of the SDK lie have a peculiar structure. It's a mystery for me that the compiler find these header files. My Solution: I've written a small php shell script. It creates a directory with symbolic links to all header directorys of the SDK frameworks. @ <?php $sdk = "MacOSX10.10.sdk"; $sdk_dir = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/".$sdk."/System/Library/Frameworks/"; $out_dir = "~/include_".$sdk; if(!is_dir($out_dir)) { mkdir($out_dir); } $d = dir($sdk_dir); while( FALSE !== ($f = $d->read()) ) { if( !is_dir($sdk_dir.$f) ) continue; if( ".framework" != substr($f,-strlen(".framework"))) continue; if( is_dir($sdk_dir.$f."/Headers") ) symlink( $sdk_dir.$f."/Headers", $out_dir."/".substr($f,0,-strlen(".framework"))); } @ In my .pro file I add this directory to the INCLUDEPATH variable. In this way Qt-Creator finds what it needs! The disadvantage is. The compiler is disturbed by this INCLUDEPATH, so I always have to remove this entry before compiling. Maybe someone knows a better solution? Thanks Axel
  • QT Creator Gui Spinoff -- Rad Non Programmer Framework

    10
    0 Votes
    10 Posts
    3k Views
    SGaistS
    One starting point is the "Qt Creator API":http://doc.qt.digia.com/qtcreator-extending/qtcreator-api.html documentation
  • C++ Reference No documentation available (QT Creator 3.3.0 QT 5.4)

    3
    0 Votes
    3 Posts
    2k Views
    T
    I am also having a problem getting the reference files to work. But it is only partially working... For example if I press F1 while on keywords like "vector" or "list", "cout","cin" help is showing. (And help will only show while the proper header files are included, and either the words must be preceded by std::, or defined with "using std::") But for other words like "int" and "double", I am getting nothing. It does not work with "for", "while" "do","if". .. I am getting the impression, the index for the help is tied to the header files, and so will only work with keywords and functions which have header files, and which are included, and will not work for anything else. .. I am using QT Creator 3.3 QT 5.4, on Linux Mint 17.
  • 0 Votes
    1 Posts
    654 Views
    No one has replied
  • \group and \ingroup topic command for QML documentation

    4
    0 Votes
    4 Posts
    2k Views
    Z
    I am facing the same kind of problems. \qmlmodule and \inqmlmodule also don't seem to work well. I don't want to use doxygen. Because our docs need to become integral part of the help.
  • Power button shuts down computer if Qt Creator is running

    10
    0 Votes
    10 Posts
    2k Views
    N
    Well, this is interesting. I tried multiple times with various software. With VLC 2.1.4, Clementine (using Qt 4.8.6) and Skype 4.3.0 it never happened. With Texmaker 4.1 (built on Qt 4.8.4) it seems to happen about once in two times. With my own app built on Qt 5.?.?, it only happened once in ten times. I tried to test launching the apps from the launcher bar or from a console, executing the command with or without "&" at the end, pressing the power button while the window had the focus or not, but couldn't seem to find any pattern. Another issue that these apps all have, however, is this: http://qt-project.org/forums/viewthread/47632/
  • Qt Creator and SVN

    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You need 1.7 at least since 3.3 See the "changelog":https://qt.gitorious.org/qt-creator/qt-creator/source/d4d677ed2536408d83676212496855370d340702:dist/changes-3.3.0
  • Cannot paste from Clipboard to QtCreator 3.3.0

    2
    0 Votes
    2 Posts
    782 Views
    SGaistS
    Hi, Might be a Windows specific bug. You should take a look at the "bug report system":http://bugreports.qt-project.org to see if its something known
  • Qt creator "File not found" in add existing files dialog

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Did you tried with 3.3.1 ?
  • QMake, system headers, disabling warnings from boost headers

    1
    0 Votes
    1 Posts
    667 Views
    No one has replied
  • Qt creator (mask a variable)

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, QByteArray is not a byte so you can't just mask it like that. You first need to extract the values you want to mask. In any case, you're not using QSerialPort correctly. readAll() will only give you something if you have data available. You should rather take a look at the terminal example to see how it works.
  • Project XML Wizard: Deploying QRC

    1
    0 Votes
    1 Posts
    493 Views
    No one has replied
  • QTCreator and windows resource files.

    4
    0 Votes
    4 Posts
    4k Views
    SGaistS
    Might be, yes indeed !
  • Qt Creator debugging problem: Could not get value: No value

    2
    0 Votes
    2 Posts
    790 Views
    A
    I suggest to report that at bugreports.qt-project.org, including the contents of the log.
  • [Solved] qtCreator3.3, Project window disappeared

    4
    0 Votes
    4 Posts
    2k Views
    T
    Installed 5.4.1 and the window is back.