Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Clearing Out a Layout

    21
    0 Votes
    21 Posts
    25k Views
    J
    [quote author="Arukas" date="1326976934"]I don't agree. I tried many things, and I eventually removed the show. "Here's a link to some example code.":http://dl.dropbox.com/u/481280/layoutDeleter.zip It doesn't matter that I use a QWidget or not, the layout is still not deleted from the GUI. [/quote] I inspected your code, and that's not actually what I meant. please check "this":http://dl.dropbox.com/u/3699382/layoutDeleter2.zip and be noted that any layout instance will be deleted as soon as place holder widget is gone. And see the difference and wanna hear your review on it.
  • Qt4.8 prefix and relocatable build

    3
    0 Votes
    3 Posts
    3k Views
    J
    I find it surprising that a patch should be necessary. This ought to be something that can be overridden by environment variables.
  • How Does A Graphics Item Know When The Mouse Is "Over" It?

    10
    0 Votes
    10 Posts
    6k Views
    T
    I ran into this problem again. I wish I knew what I was doing wrong. I am using events to cause graphic item position changes. It's like the scene's BspTreeIndex needs to refresh it's cache. I am guessing that Qt assumes an order and I am violating it. Anyhow, I will drop back to QGraphicsScene::NoIndex. Hopefully I won't get too much of a performance penalty.
  • Deleting Objects and Connections

    3
    0 Votes
    3 Posts
    9k Views
    A
    Did not know that. Figured it did, but now I know for sure. Thanks!
  • QBuffer flush

    5
    0 Votes
    5 Posts
    6k Views
    T
    There still is no need to do expensive stuff needlessly just because you need to do other expensive stuff anyway.
  • QStateMachine start synchronization

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Mixing Qt with Cocoa/MacOS X specific code

    3
    0 Votes
    3 Posts
    3k Views
    D
    Thanks Volker, I'll do this way and keep this thread updated.
  • GraphicsView doesn't display Pixmap

    9
    0 Votes
    9 Posts
    6k Views
    G
    Thank u :)
  • QIODevice: Trouble replicating writeBlock behaviour

    5
    0 Votes
    5 Posts
    3k Views
    T
    I would recommend against using toLocal8Bit(...) here: You might end up getting different output results based on the system/user using your application! All of toLatin1(...), toAscii(...) and toUtf8(...) have a well defined output.
  • [Solved]Placing Widgets in the MainWindow

    4
    0 Votes
    4 Posts
    3k Views
    L
    You're welcome ;-) Make sure you add "[Solved]" to your initial posts title to indicate that there is a solution inside.
  • [SOLVED] Map resource file to QByteArray

    3
    0 Votes
    3 Posts
    4k Views
    A
    bq. BTW: there is a difference you use “Resources” and “Resource”. If it is copy and paste from your source this might be the problem. have just mistyped... :) Mistake was, I've used "qrc:/Resources/404.html" and not ":/Resources/404.html" Thanks!
  • Delegate display on row selection in QTableView

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to GET a QDockWidget position ?

    2
    0 Votes
    2 Posts
    3k Views
    P
    [solved] I answer to myself : the method dockWidgetArea() is in QMainWindow class : @QMainWindow::dockWidgetArea ( QDockWidget * dockwidget )@
  • Advance Signals and Slots

    4
    0 Votes
    4 Posts
    3k Views
    T
    Thanks... It's exactly what I've looking for. BR,
  • Problem with QDir::homePath()

    8
    0 Votes
    8 Posts
    8k Views
    L
    My mistake. I interpreted UTF-16 as UTF-8, using .constData()' instead of qPrintable(...)'. Everything's fine now, and thanks to all of you for your help.
  • Classes that are restricted to the GUI thread

    2
    0 Votes
    2 Posts
    1k Views
    D
    I don't think there's one, but see http://developer.qt.nokia.com/doc/qt-4.8/threads-modules.html
  • [Solved]Repaint widget after qss

    3
    0 Votes
    3 Posts
    2k Views
    R
    The Button was chekable To this worke after pressing of pushButton we must call method QWidget::setStyleSheet("")
  • 0 Votes
    11 Posts
    7k Views
    G
    Of course it does work, because QString.h and qstring.h (and as well QSTRING.H or qStRiNg.H) are all the same file. On Unix/Linux these are different files. On the Mac the filesystem usually (default settings) is case-IN-sensitive either, as on Windows. The recommended way to include directives in C++ in general is @ #include <QString> @ i.e. using case (if used in the API docs) and without a trailing .h - this is expected to be portable across all platforms. If you do differently, you might run into troubles.
  • QProgressBar high memory usage

    7
    0 Votes
    7 Posts
    3k Views
    T
    Me neither, hence the forum post. I thank you for your help anyway.
  • [SOMEHOW SOLVED] QStatusBar - draw frameless widgets

    3
    0 Votes
    3 Posts
    3k Views
    A
    have tried this allready... doesn't help... looks like I must subclass QStatusBar and reimplement its paintEvent...