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] How to make windres understand empty spaces in macro definitions

    2
    0 Votes
    2 Posts
    2k Views
    napajejenunedk0N
    I found the solution. Instead of: @ "$$quote($$ARGS)" @ use: @ $$join(ARGS, \x20) @
  • Help with Menu, JCreator Design

    3
    0 Votes
    3 Posts
    2k Views
    W
    Also, if you want to edit signals/slots from Designer, you shoud: Add new menu in menuBar. Add new action in your menu Switch to Signals/Slots mode Lock at the bottom of the screen and and choose Signals/alots Editor (or something like this, I don't have English QtCreator) tab Push green plus button to add signal-slot connection Choose your menu's action as sender and whateveryouwant as reseiver. ??? Profit.
  • [Solved] Compiler report error after adding Q_OBJECT in header file

    4
    0 Votes
    4 Posts
    2k Views
    M
    Be sure and edit the initial thread to add [Solved] to the title. Thanks!
  • [Solved] Destruct QWizard after wizard finished

    2
    0 Votes
    2 Posts
    2k Views
    A
    The problem is, that you are deleting an object that is still being run. That is asking for trouble. What happens if that the QWizard code does an emit for the finished signal. Recognize that at this point, the code point is inside a method of the QWizard code. Something else might be after that emit, you don't know. The emit statement takes the code path outside of QWizard if you connect to it. In your case, it goes to the wizardClosedHandler. There, the wizard then gets deleted. After the slots that were connected to the signal have finished processing, control returns to the point just after the emit... However, that object was just deleted. That results in undefined behaviour. So: don't delete objects in response to signals from those objects. Note that this might be harder to do than you think. In your case, the connection is clear, but there may be cases where a signal triggers a whole cascade of other signals and slots that may, in the end, result of the deletion of the object that send the signal that triggered the whole cascade in the first place. That is very hard to debug. You can avoid it in your own code, but it takes disipline and some tricks to do so. In your case, the solution is simple though: replace your connect statement with this: @ connect(wizard, SIGNAL(finished(int)), wizard, SLOT(deleteLater())); @ You can remove your void MainWindow::wizardClosedHandler(int ret) method.
  • How to Rip Audio CD in Qt C++

    2
    0 Votes
    2 Posts
    2k Views
    A
    Qt does not offer this functionality. Other libraries are off topic here.
  • [Solved] GUI design question

    3
    0 Votes
    3 Posts
    2k Views
    McLionM
    I was reading most of it and tried to do some things. I have the main Rectangle id:page in the size of my screen of 1280x800. In there I can place images with a MouseArea on it to act like a button (or can i place an transparent png on a button as well?). In addition to the MouseArea of the buttons, all of the transparent screen (1280x800) needs to have a MouseArea as well to activate/show the buttons as overlay which are normally hidden. What I could not figure out is how to set the main page rectangle to really be transparent (equal to translucent: setAttribute(Qt::WA_TranslucentBackground); when working in Widget mode). How can I do that in a QtQuick / QML? In addition .. could it be that 4.6.3 does not support QtQuick/QML? I must use it on 4.6.3 on embeddedLinux in the end. Thanks Franz
  • How to run 21 threads concurrently

    5
    0 Votes
    5 Posts
    3k Views
    R
    Well of course modern CPU architectures are multicore, and Qt Concurrent is perfectly fit to handle that. The question is what problem would require 21 concurrent threads ? Running so many threads even with hyperthreading on a 8 logical cores machine will behave poorly in my opinion due to context switching and heavier scheduling burden on the kernel.
  • What is QtBrowserPlugin

    5
    0 Votes
    5 Posts
    5k Views
    D
    The QtBrowserPlugin is a part of Qt Solutions which is not being developed further by Digia. (http://qt.digia.com/Product/Qt-Add-Ons/Qt-Solutions-Archive/) You can now find it on http://qt.gitorious.org/qt-solutions. By the way, we use QtBrowserPlugin on Chrome and it works just fine.
  • Multimedia (video) backend for Windows(7) in Qt5?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED] QUndoStack multiple steps

    5
    0 Votes
    5 Posts
    3k Views
    G
    Hi xcoder, to achieve this grouping, the QUnbdoStack has the method beginMacro/endMacro. This is some code of mine, where I use it: @ m_undoStack->beginMacro(tr("Paste data from clipboard to article categories")); int nRowMin = qMax(qMin(rTopLeft.row(), rBottomRight.row()), 0); updateOrAddEntries(pMimeData, nRowMin, tr("paste data to article categories")); m_undoStack->endMacro(); @
  • [SOLVED]QNetworkAccessManager fails to get all headers

    9
    0 Votes
    9 Posts
    5k Views
    A
    Thanks it was really a helpful description!
  • Can I implement this example in my program?

    4
    0 Votes
    4 Posts
    2k Views
    I
    Okay, I solved. @//it creates the two text boxes CodeEditor *editor0 = new CodeEditor; //left side box CodeEditor *editor1 = new CodeEditor; //right side box //it uploads the text boxes in the main window ui->textBoxLayout->addWidget (editor0, 0, 0); ui->textBoxLayout->addWidget (editor1, 0, 0);@
  • How to set QGridLayout column width for QLabel Widgets?

    1
    0 Votes
    1 Posts
    7k Views
    No one has replied
  • 0 Votes
    3 Posts
    4k Views
    S
    Hi Terence, Unfort. that is not the problem/reason, I have the source main.cpp listed in my .pro file of course. There is some another problem/reason. With the .dlls needed to run executable. What is it ?
  • [solved]url recognition in qt

    6
    0 Votes
    6 Posts
    2k Views
    D
    That was only an example to explain my problem, I know that a QUrl can't be a boolean.
  • [SOLVED]How to display strings in language other than english

    5
    0 Votes
    5 Posts
    5k Views
    A
    Thanks a ton! It worked like a charm. @QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));@
  • Install Qt SDK 1.2.1 in Ubuntu 12.04 64bits crash

    12
    0 Votes
    12 Posts
    13k Views
    T
    giowck: Qt 4.8.2 and Qt Creator 2.5 are readily available in most Linux distributions and as binary packages on the download page. The Qt SDK has not been updated in a long time (much longer than the couple of weeks that Digia is now at the helm now) -- on all platforms.
  • QTextEdit->ensureCursorVisible() with QScrollArea

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • RegExp with a binary data stream [Solved with boost]

    2
    0 Votes
    2 Posts
    3k Views
    K
    I have switched to boost::regex for that task. Even so I am not enjoying the complicated interface of the boost::regex implementation, it solved my problem.
  • File transfer with QtcpSocket

    Locked
    2
    0 Votes
    2 Posts
    8k Views
    K
    Please do not open a new thread, because the answers to your "previous thread":http://qt-project.org/forums/viewthread/20768/ were not sufficient. Continnue with the old thread. It is helpful to provide some more information and details what you have tried. Closing this thread.