Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • Phonon: Move disk access off the main thread

    3
    0 Votes
    3 Posts
    3k Views
    H
    I haven't looked into 4.7, yet. Will do that now. Thanks for the hint.
  • How to get width and height of QScrollbars arrow widgets

    6
    0 Votes
    6 Posts
    11k Views
    ?
    The default size should be documented, anything custom (depending on your use case), my approach should work
  • Difficulty to show only what I want in QGraphicsview

    2
    0 Votes
    2 Posts
    3k Views
    ?
    Hi, @ ui->graphicsView->fitInView(ui->graphicsView->items().at(0),Qt::KeepAspectRatio); @ instead of that, I think you can directly use view->setTransform() or view->scale()
  • QToolbar

    4
    0 Votes
    4 Posts
    4k Views
    T
    Well, I found this solution looking at the QToolBar source code, qtoolbar.cpp. In particular, I found this method: @ void QToolBarPrivate::updateWindowFlags(bool floating, bool unplug) { Q_Q(QToolBar); Qt::WindowFlags flags = floating ? Qt::Tool : Qt::Widget; flags |= Qt::FramelessWindowHint; if (unplug) { flags |= Qt::X11BypassWindowManagerHint; #ifdef Q_WS_MAC flags |= Qt::WindowStaysOnTopHint; #endif } q->setWindowFlags(flags); } @ So I guess that you need also to add the flag Qt::X11BypassWindowManagerHint, and, with Mac, the flag Qt::WindowStaysOnTopHint. Antonio
  • Some problems of using opengl es in qt

    6
    0 Votes
    6 Posts
    6k Views
    O
    Well, I'didn't put the glext.h in the path you did! I just placed it in the subdirectory "OGL" in my project root! I am not sure why they aren't defined. I have the first snippet of code at the top of my header file before including any other files.
  • 0 Votes
    1 Posts
    14k Views
    No one has replied
  • QTreeWidget and QUndoStack?

    9
    0 Votes
    9 Posts
    8k Views
    Y
    You may find this helpful regarding implementing undo: "http://lynxline.com/undo-in-complex-qt-projects/":http://lynxline.com/undo-in-complex-qt-projects/
  • Undefined reference to `qBadAlloc()' all over the place

    3
    0 Votes
    3 Posts
    7k Views
    H
    bq. qmake distclean Just for the reference - that should be "make distclean" You compiled your application against a Qt version that was built with exception support, but then try to partially link it again against a Qt version without exception support. When you switch Qt versions like that, you should always run "make clean" to do a clean build.
  • Detect internet browser on system

    4
    0 Votes
    4 Posts
    4k Views
    D
    If you know path, where browser is located and you know what this browser is (to pass correct command line parameters to it) than you can you QProcess to run browser with parameters to open URL in it.
  • Qt is crashing when showing this tooltip. Why?

    8
    0 Votes
    8 Posts
    5k Views
    T
    Good... Please report a bug against those styles then.
  • Dynamic library with GUI for Mac

    4
    0 Votes
    4 Posts
    5k Views
    M
    I've solved my problems. I've found Qt::AA_MacPluginApplication application attribute for main top menu not to be replaced. And I've found "Quit" problem description in http://bugreports.qt.nokia.com/browse/QTBUG-8087.
  • QXmlSchema not always working

    3
    0 Votes
    3 Posts
    3k Views
    J
    Thank you, that is a releif, it seems that I have stumbled across the same bug.
  • A place to find out answers to problem (stackoverflow)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QGrahpicsItemGroup dropEvent for Children

    2
    0 Votes
    2 Posts
    3k Views
    H
    push
  • QDateTimeEdit and CalendarPopup.

    5
    0 Votes
    5 Posts
    5k Views
    K
    bq. I have not tried this, but maybe it is enough to call show() on the calendarwidget? I tried it, but it hasn't given any results.
  • Trouble with a "Shared Library" from another project

    6
    0 Votes
    6 Posts
    4k Views
    H
    Whooohoo. That works :-) Thanks a lot.
  • QVariant to std::vector

    3
    0 Votes
    3 Posts
    8k Views
    O
    QVariant can contains std::vector, you just need to do somewhere Q_DECLARE_METATYPE(std::vector); Then you can use QVariant::fromValuestd::vector(v); and variant.valuestd::vector(); But you may want to convert to QVector before with QVector::from/toStdVector(). This really depends of your use case.
  • QGraphicsView unprecise painting with raster engine

    10
    0 Votes
    10 Posts
    6k Views
    H
    Atialiasing is false and I tried it with 0.0 and 1.0 pen width and it made no difference because the transformation is reseted.
  • [Solved] How correctly save data table to DB?

    3
    0 Votes
    3 Posts
    4k Views
    T
    I read the title and assumed you meant blueray disc... Only when reading the question itself I realized that you probably meant database:-)
  • QFtp example, problem with download

    2
    0 Votes
    2 Posts
    5k Views
    H
    Try to compile your own Qt, and enable the following two defines on top of qftp.cpp (they're commented out in the default build): @ #define QFTPPI_DEBUG #define QFTPDTP_DEBUG @ If there's nothing obvious that you can see or fix yourself, I suggest to create a bugreport at bugreports.qt.nokia.com, providing the trace you get from the QFTP* debug macros, and as much other information as possible (which ftp server? active or passive mode? binary or ascii?). Also try different FTP servers, maybe that particular ftpd has a bug?