Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • [SOLVED] QMetaObject::className() returns base name

    5
    0 Votes
    5 Posts
    3k Views
    G
    Ahh, adding Q_OBJECT to the subclass did the trick. Thanks panosk.
  • Mouse events and filter

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Resolved] Compiling problems, resources files (.cpp, .h) not found....

    3
    0 Votes
    3 Posts
    8k Views
    D
    Great Maxoreli! That's the problem, appears to be a Bug? Or Not? Thanks a lot!!
  • Beginner Compiling samples

    12
    0 Votes
    12 Posts
    6k Views
    T
    @Boysie: I can not follow your description of the problem you ran into. You mention cmake... what has that to do with anything? If you set up a cmake project then creator will of course not run qmake as that is a completely different build system. Creator will make sure the Qt binaries are in the PATH whenever it runs anything. So far I never got any complaints that this fails to work, you are the very first. So what exactly are you doing? What kind of project is it? Did you open it via a CMakeLists.txt file or a whatever.pro file? Yes, development on Linux is much simpler than on Windows, I fully agree with you there. We can not ship the MS tools for building software for legal reasons. There is no way around that. We did put the mingw tools into the Qt SDK, but IIRC don't do so in the stand-alone Qt Creator installer. That is supposed to be as small as possible... people do complain about the download sizes when we include extra stuff, especially those that have a mingw set up already.
  • Qt 4.4 and gif plugin

    3
    0 Votes
    3 Posts
    2k Views
    R
    thanks. It works! Alife! Alife!
  • 0 Votes
    3 Posts
    8k Views
    D
    Thanks TheloniousBonk, this solved my problem! Now appears other: @ process_begin: CreateProcess(NULL, bin\rcc.exe -name Resources ..\SistemaAssistenciaTecnica\Resources.qrc -o debug\qrc_Resources.cpp, ...) failed. make (e=2): O sistema não pode encontrar o arquivo especificado. mingw32-make[1]: *** [debug/qrc_Resources.cpp] Error 2 mingw32-make: *** [debug] Error 2 09:33:48: The process "C:\MinGW\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project InoveBEV (target: Desktop) When executing step 'Make' @ [quote author="TheloniousBonk" date="1352509613"]I hit the same problem today when I attempted to build my app with MinGW for the first time. I got around the problem by adding the following line to my .pro file: CONFIG += exceptions [/quote]
  • Releasing QImage memory when going out of scope

    11
    0 Votes
    11 Posts
    18k Views
    L
    I, for whatever reason, thought you've raised the initial question, so I've wondered why you've shown such an example. But you are obviously not, and it starts making sense now. ;-)
  • Failed to build shared library on Windows

    1
    0 Votes
    1 Posts
    837 Views
    No one has replied
  • How to insert a child element in an existing element

    6
    0 Votes
    6 Posts
    5k Views
    T
    Use QDomNode nextSibling() while nextSibling's QDomNode will have the tag name 'passwords' and append to it your QDomNode. References: http://qt-project.org/doc/qt-4.8/qdomdocument.html#createElement http://qt-project.org/doc/qt-4.8/qdomdocument.html#toString http://doc.qt.digia.com/qt/qdomnode.html#appendChild http://doc.qt.digia.com/qt/qdomnode.html#nextSibling And read a bit about QtXml.
  • [Solved] How to access progressBar from a QWizardPage subclass

    15
    0 Votes
    15 Posts
    7k Views
    ?
    Glad to know it.
  • 0 Votes
    2 Posts
    2k Views
    G
    Answer: Changing boundingRect() to return QRectF(x, y, w, h) fixed the problem.
  • Return of the Database

    5
    0 Votes
    5 Posts
    2k Views
    B
    Thank you. I'll be trying soon reply to you what happened.
  • [Solved] Help using QRegExp

    4
    0 Votes
    4 Posts
    1k Views
    M
    No problem! Be sure and retitle the thread as [Solved]. Thanks!
  • Problem with QKeySequence(tr("Ctrl+X, Ctrl+C"));

    4
    0 Votes
    4 Posts
    4k Views
    T
    [quote author="MrDev" date="1352484489"]Hi, tucnak. Thank you for your reply. yes, that was my version... @void MyWidget::keyPressEvent(QKeyEvent *event) { switch (event->key()) { case Qt::Key_X: if (event->modifiers() & Qt::ControlModifier) { qDebug() << "yep"; } break; default: QWidget::keyPressEvent(event); } }@ It doesn't work again. When I change the Qt::Key_X with Qt::Key_Z for example, it is ok. But with the letters X,C,V it doesn't. [/quote] Hm... it should be interesting. Sorry, I am busy today, so you should wait for other users or tomorrow)).
  • QGraphicsGeoMap Scale bar

    3
    0 Votes
    3 Posts
    2k Views
    T
    This is the "link":http://qt-project.org/quarterly/view/location_and_mapping_services to the tutorial.
  • .exe file don't work correct on different PC

    3
    0 Votes
    3 Posts
    2k Views
    JeroentjehomeJ
    Don't think you need to recompile openCV. If that is the problem, the program woudn't run anyway and give a "couldn't find dll" stuff errors. As mrdebug says it is probably caused by Win7 and how it handles webcams. Maybe install Qt on a Win7 and start testing it there. Greetz
  • Something about Parsing JSON with QT and VS2010

    2
    0 Votes
    2 Posts
    1k Views
    T
    Hi, ~dev_jiang! Evaluating JSON with QScriptEngine is not the best idea. If to be honest - it's a bad practise. Why is? Just cos it takes too much memory. Use it only if you need to evaluate JavaScript code, not it's notation. There is one of my favourite libraries - QJson. It allows to work with JSON on the QVariant* level. Read, write, serialize, etc. Project link: http://qjson.sourceforge.net/
  • Qt Creator 2.6.0 RC won't add my freshly-compiled Qt 5

    8
    0 Votes
    8 Posts
    5k Views
    JKSHJ
    I found the cause, and a workaround. My "Compilers" list contained MinGW GCC 4.4 (manually added), which I was using alongside the pre-built Qt 4.8.3. I believe this was somehow causing trouble when I tried to add my new qmake.exe, which was built using GCC 4.7. GCC 4.7 is in my PATH, and is also auto-detected, but I guess Qt Creator tried running GCC 4.4 first. When I removed GCC 4.4 from the list, Qt Creator happily added my new qmake.exe
  • Socket: Unable to send a Message

    5
    0 Votes
    5 Posts
    8k Views
    S
    You mean those lines in this Udp sing thing? @rBytes = this->socket->write(buf,maxl); //only for connected state? Where is the destination ip/port? this->socket->flush(); this->socket->waitForBytesWritten();@
  • [solved]qcombobox popup stylesheet

    2
    0 Votes
    2 Posts
    3k Views
    F
    Worked properly, thank you: implementation: @ int dpi=QPaintDevice::physicalDpiX(); int fontsize=dpi/12; //change to your liking QFont myf=QApplication::font(); myf.setPixelSize(fontsize); QApplication::setFont(myf); @ [Edit: Added @ tags -- mlong]