Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • ETA on next sdk release with new QT Creator?

    2
    0 Votes
    2 Posts
    1k Views
    sierdzioS
    Use standalone Qt Creator, then. Better use standalone libraries, too. SDK was developed by Nokia, and not updated for past 6+ months. Digia has not released non-commercial one yet.
  • Qtcreator 2.5.2, qt 4.8.1,,, resource file?

    14
    0 Votes
    14 Posts
    4k Views
    mrdebugM
    Here is the link: https://bugreports.qt-project.org/browse/QTBUG-27424 My fear is that the bug report is not clear because my english is very bad (now I'm doing an English course).
  • QFile: Append mode does not work well.

    7
    0 Votes
    7 Posts
    13k Views
    L
    Acctually, as u see, i didn't use position or seek() in my code. i really wanna append contents to the end of the file, but it didn't work to use QIODevice::Append flag.
  • [Solved]Downlaod a whole website by Qt

    8
    0 Votes
    8 Posts
    3k Views
    U
    I guess most people just don't have a choice you know. Most Taiwanese bosses are just the same, be it hard to believe. Godspeed in Malaysia because we're f***ed here in Taiwan.
  • QScrollArea with QGridLayout

    5
    0 Votes
    5 Posts
    21k Views
    C
    Thanks for the code snippet Chris. I posted my own here http://qt-project.org/forums/viewthread/20924/ (made a new thread since it was pretty massive) and I am still at a loss. When I made a new project and tried your project it was all jumbled up in the top left corner. My code snippet and screenshot show the issue I am having, but still just not sure where its wrong. I noticed your code is a little different from mine in terms of how it is ordered, but everything is being done the same way as far as I can tell. I just can't figure out why mine is causing the columns to overlap each other rather than just spreading out and making horizontal scroll bars.
  • [SOLVED] Making a readonly QPlainTextEdit look disabled, using QPalette

    5
    0 Votes
    5 Posts
    6k Views
    F
    Thanks, you put me on the right path. For the record, here's what I ended up needing: @textEditPaletteNormal = ui.plainTextEditScript->palette(); textEditPaletteReadOnly = ui.plainTextEditScript->palette(); textEditPaletteReadOnly.setColor(QPalette::Active, QPalette::Base, textEditPaletteNormal.color(QPalette::Disabled, QPalette::Base)); textEditPaletteReadOnly.setColor(QPalette::Inactive, QPalette::Base, textEditPaletteNormal.color(QPalette::Disabled, QPalette::Base));@ I store these two palettes and then apply them as needed.
  • Get the same result by new API(QGraphicsItem)

    1
    0 Votes
    1 Posts
    597 Views
    No one has replied
  • [SOLVED] QPushbutton toggle appears deactivated when focus shifts

    1
    0 Votes
    1 Posts
    842 Views
    No one has replied
  • [Solved] ItemViews items Focus change signal ?

    6
    0 Votes
    6 Posts
    3k Views
    S
    How to handle shift + tab in key press inside eventFilter >
  • [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!