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
  • Qt 4.7.4 help files mangled

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    G
    Threads can be moved and should never be dupülicated. Closing this thread. Please discuss in the "original one":http://developer.qt.nokia.com/forums/viewthread/11027/
  • 0 Votes
    6 Posts
    4k Views
    G
    Right, Andre :) And I'm always getting slightly into a rant-mode with this :) A simpler solution would be to agree on UTF-8 - com'on it's almost year 2012, we've landed on the moon, we'll fly to mars soon but we still shall stick to that stoneaged 7bit crap? That's ridiculous! And yes, a switch to UTF-8 does work. Of course you have to instruct your co-workers. But it's not that much more difficult than instructing them to use 7 bit ASCII only. Using English for the C++ texts is not always a way to go. You might have a team that targets only domestic use (it may want to translate it to English later on), that would have an additional translation step. You might have developers which are unable to build correct and understandable English texts (look at the forums!). These end up with an hard to understand English text being translated back to their native language - sound weird at best and at worst would lead to babelfish like native texts in the end. And as a last one catch-all: Machines have to adapt to man, not the otherwise round. I'm plainly unwilling to restrict myself (and adding additional, unnecessary work!) only because of 40 year old artifacts that stinking lazy programmers are not willing to change to recent standards.
  • CWD of the stylesheet file

    3
    0 Votes
    3 Posts
    2k Views
    W
    [quote author="RazrFalcon" date="1319723510"][quote author="wamo" date="1319722676"]What is the current working directory of the stylesheet file?[/quote]The directory from which you start your app. You can create folder with name "icons" in folder with your application executable. Then: image: url(icons/closetab.png); Or just use "qrc":http://doc.qt.nokia.com/latest/resources.html[/quote] I found this solution. My ide has a different default CWD path. It was home instead the appdir. Thank you
  • QLineEdit::text() displayed returning an "int"

    3
    0 Votes
    3 Posts
    2k Views
    M
    Ah OK, sorry for that. Thank you.
  • [Moved] Question on Qt 4 Designer with BoxLayout

    2
    0 Votes
    2 Posts
    2k Views
    G
    [Moved this to the Tools subforum] You should add the layouts from the most inner to the outside, not the other way round. Maybe you need to break the outer layout, add the inner layout and re-add the outer layout.
  • [Solved]Eclipse qwidget properties tab missing/empty

    2
    0 Votes
    2 Posts
    2k Views
    M
    I just found it. Silly me. It's not called "Properties", it's "Qt C++ Property Editor"
  • [SOLVED] Add 'Function' Declaration

    7
    0 Votes
    7 Posts
    3k Views
    D
    Thanks! ALT+ENTER works fine!
  • [Moved] unresolved external symbol _SDL_GetError

    4
    0 Votes
    4 Posts
    3k Views
    M
    Hi the above errors are by my messed project as below. What project settings do I need to change? Many thanks Michael Lead build steps for project myProject ... Run "C: \ QtSDK \ QtCreator \ bin \ jom.exe" clean E: \ QtSDK \ QtCreator \ bin \ jom.exe-nologo-j 2-f clean Makefile.Debug del debug \ main.obj del debug \ win.xpl.intermediate.manifest debug \ win.xpl1.exp debug \ win.xpl1.ilk vc vc *. pdb *. idb del debug \ win.xpl_resource.res E: \ QtSDK \ QtCreator \ bin \ jom.exe-nologo-j 2-f clean Makefile.Release jom 1.0.6 - empower your cores E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop_ MSVC2008__Qt_SDK__Release \ debug \ main.obj could not be found could not be found E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop MSVC2008__Qt_SDK__Release \ vc *. pdb could not be found could not be found del release \ main.obj del release \ win.xpl.intermediate.manifest release \ win.xpl1.exp del release \ win.xpl_resource.res del ". \ win.xpl.intermediate.manifest" could not be found del win.xpl1.exp could not be found E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop _MSVC2008__Qt_SDK__Release \ win.xpl1.exp could not be found ...
  • [Solved]Empty reference in assist

    7
    0 Votes
    7 Posts
    3k Views
    R
    Always forget to do it)
  • 0 Votes
    14 Posts
    5k Views
    R
    [quote author="Tobias Hunger" date="1319361096"]IIRC there are bug reports about these issues in JIRA for ages! It is not so straight forward to do due to the custom themeing we do, or so I was told. Feel free to "provide some patches":https://codereview.qt-project.org/ to fix this;-)[/quote] Thanks Tobias, I'll think about it as soon as I find time (right now I have many work, little daughter :) and English language courses, so it's a bit difficult with time :-) )
  • Event called upon window resize

    4
    0 Votes
    4 Posts
    11k Views
    Z
    Thanks !
  • Relationship between project files and build targets

    6
    0 Votes
    6 Posts
    3k Views
    mzimmersM
    Odd...I thought I'd replied to this already. Tobias: I'm not trying to use this for platform-specific code. I have a collection of related programs that I thought would be convenient to control under one .pro file, but it appears that's not such a good idea. But yes, you've answered my original question. I'll just plan on a 1:1 ratio between executables and .pro files. Thanks.
  • QtSDK Source Code

    12
    0 Votes
    12 Posts
    8k Views
    T
    ... or ask on IRC. The installer framework guys hang out in #qt-sdk on freenode.net.
  • Shared code in subdirs template?

    12
    0 Votes
    12 Posts
    6k Views
    G
    [quote author="wecing" date="1319138207"]So it will be different on Windows?[/quote] For MinGW this should work too, as it's a gnu toolchain. It should work for the visual studio toolchain together with Qt Creator as IDE too. I don't know if it works with full Visual Studio usage (including the IDE/GUI).
  • Qt Creator: Widgets are not added to h file

    2
    0 Votes
    2 Posts
    2k Views
    G
    the widgets are added to your ui class, you can access them via the ui pointer or member variable: @ // pointer ui->pushButton->setText("bla"); // member variable ui.listWidget->clear(); @
  • VS2008 qt addin CustomBuildTool

    5
    0 Votes
    5 Posts
    3k Views
    G
    If you want to ensure to get answers from troll, file a bug report. some of the trolls are around here, but not all.
  • Qt addin bug (VS2008)

    2
    0 Votes
    2 Posts
    2k Views
    G
    Go to the "public bugtracker":https://bugreports.qt.nokia.com (aka Jira), create an account and then open a new issue. Select "Qt Visual Studio Add-In". Please make sure that you have searched the bug database for your issue, just in case someone else did already report the bug. Maybe "QTVSADDINBUG-90":https://bugreports.qt.nokia.com/browse/QTVSADDINBUG-90 is relevant for you.
  • Qt Creator/designer and MSVC2008?

    16
    0 Votes
    16 Posts
    11k Views
    P
    Solved! Well, at least I can build my Qt test project with Visual nmake/cl.exe. The problem was in the generated Makefile.Debug file. I created a test project in my installed Visual Studio 2008 Express and compared the MSVC build command with the qt Makefile build command. I then made following changes in the Makefile.Debug: Removed alot of defines and added a few. Changed include path from relative to absolute Removed most include paths, just kept the necessary ones Added a bunch of Windows static libs (kernel32.lib user32.lib just to mention a few) Changed "-D" and "-I" to "/D" and "/I" for defines and include paths respectively. Dunno if that really is needed, but so it was in my MSVC project... The question is how to create the Makefile.Debug with qmake so it works from the start?
  • Easy way to remove all c++ comments from code

    3
    0 Votes
    3 Posts
    5k Views
    A
    "Try this":http://lmgtfy.org/?q=c+++comment+remover
  • 0 Votes
    2 Posts
    2k Views
    A
    Hmmm... OK, one solution (bit of a hack, but ok) is to use this implementation of the createWidget() method: @ QWidget *CheckBoxSpacerWidgetPlugin::createWidget(QWidget parent) { MyWidget resultWidget = new MyWidget(parent); QWidget* pw = parent; while (pw) { qDebug() << "parent class:" << pw->metaObject()->className() << pw->inherits("QDesignerWidget"); if (pw->inherits("QDesignerWidget") ) { //this one seems to be only used in Design mode-- //the m_inDesignerModeFlag is private in the widget, but the plugin is a friend class of the widget resultWidget->m_inDesignerModeFlag = true; break; } pw = pw->parentWidget(); } return resultWidget; } @